Currently, web3.priv.subscribe() uses polling to fetch new logs. If the user is using WebSockets, detect this, and use priv_subscribe and priv_unsubscribe behind the scenes instead of polling.
Addresses #101.
Add priv_subscribe and priv_unsubscribe
Update PrivateSubscription to handle WebSockets
Add example of subscribing with WebSockets
(replaces PR #102)
Currently, web3.priv.subscribe() uses polling to fetch new logs. If the user is using WebSockets, detect this, and use priv_subscribe and priv_unsubscribe behind the scenes instead of polling.
Addresses #101.
Add priv_subscribe and priv_unsubscribe Update PrivateSubscription to handle WebSockets Add example of subscribing with WebSockets