embark/dapps
emizzle f6f45077e9
fix(@embark/proxy): Fix unsubsribe handling and add new provider
When `eth_unsubscribe` is received in the proxy, ensure this request is forwarded through on the correct socket (the same socket that was used for the corresponding `eth_subscribe`).

Move subscription handling for `eth_subscribe` and `eth_unsubscribe` to RpcModifiers (in `rpc-manager` package).

For each `eth_subscribe` request, a new `RequestManager` is created. Since the endpoint property on the proxy class was updated to be a provider, the same provider was being assigned to each new `RequestManager` and thus creating multiple event handlers for each subscription created. To circumvent this, we are now creating a new provider for each `RequestManager`.

Co-authored-by: Pascal Precht <pascal.precht@googlemail.com>
2019-11-21 15:38:48 +01:00
..
templates build(deps): bump deprecated ipfs-api@17.2.4 to ipfs-http-client@39.0.2 2019-11-18 09:41:24 -06:00
tests fix(@embark/proxy): Fix unsubsribe handling and add new provider 2019-11-21 15:38:48 +01:00
.gitignore build: make DApp templates member packages of the monorepo 2019-03-05 10:20:57 -06:00
.yarnrc build: make DApp templates member packages of the monorepo 2019-03-05 10:20:57 -06:00