Support Solana disconnect via request method

This commit is contained in:
Ivan Grachev 2022-08-23 15:10:34 +03:00
parent 398e9d87fa
commit 1432d534a0
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -113,6 +113,10 @@ class TokenarySolana extends EventEmitter {
}
request(payload) {
if (payload.method == "disconnect") {
return this.disconnect();
}
this.idMapping.tryFixId(payload);
return new Promise((resolve, reject) => {
if (!payload.id) {