Closed nodech closed 5 years ago
Caveats: There will be no way to differentiate vanilla socket events from bsock events.
Note:
Wallet
(which only has EventEmitter) so it's consistent when initiating Wallet
instance from WalletClient
.I guess exposing unhook
and unbind
will solve my issue.
We could change Wallet to use Socket
API as well.
Even though you can use
bind
for WalletClient to subscribe to events, we end up having different APIs for Wallet and WalletClient (One usingbind
anotheron
).This will enable EventEmitter api for walletClient. (EventEmitter is used for connect, error and disconnect events for now).