aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/inproc.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-04-05 15:43:32 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-04-05 15:43:32 +0800
commited92f116f72646e73613afc2f2e7b83472a61434 (patch)
tree6c6d3cf414e21ee37d93e30e782ec028ff0144f8 /rpc/inproc.go
parent6a185531d2cd2003bb4352c391f9dca023894d5a (diff)
parentf7328c5ecbd1076582a71ef7bf436485f3868b1f (diff)
downloaddexon-ed92f116f72646e73613afc2f2e7b83472a61434.tar
dexon-ed92f116f72646e73613afc2f2e7b83472a61434.tar.gz
dexon-ed92f116f72646e73613afc2f2e7b83472a61434.tar.bz2
dexon-ed92f116f72646e73613afc2f2e7b83472a61434.tar.lz
dexon-ed92f116f72646e73613afc2f2e7b83472a61434.tar.xz
dexon-ed92f116f72646e73613afc2f2e7b83472a61434.tar.zst
dexon-ed92f116f72646e73613afc2f2e7b83472a61434.zip
Merge pull request #2407 from bas-vk/rpc-notifications
RPC pub sub
Diffstat (limited to 'rpc/inproc.go')
-rw-r--r--rpc/inproc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/inproc.go b/rpc/inproc.go
index 3cfbea71c..250f5c787 100644
--- a/rpc/inproc.go
+++ b/rpc/inproc.go
@@ -39,7 +39,7 @@ func (c *inProcClient) Close() {
// RPC server.
func NewInProcRPCClient(handler *Server) Client {
p1, p2 := net.Pipe()
- go handler.ServeCodec(NewJSONCodec(p1))
+ go handler.ServeCodec(NewJSONCodec(p1), OptionMethodInvocation|OptionSubscriptions)
return &inProcClient{handler, p2, json.NewEncoder(p2), json.NewDecoder(p2)}
}