diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-28 04:26:42 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-28 04:26:42 +0800 |
commit | d8c6168d11dda55ffb10bc70601e74e347c156e1 (patch) | |
tree | 2566a52ac3baf4a3ad005f6bd08fb15ad15eb81a /rpc | |
parent | dd3f38fe5b283f3c728823cb2d4e844712017e48 (diff) | |
download | dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.gz dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.bz2 dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.lz dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.xz dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.zst dexon-d8c6168d11dda55ffb10bc70601e74e347c156e1.zip |
Return a websocker.Handler of the function
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/ws/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/ws/server.go b/rpc/ws/server.go index 9be305b6c..c275031f4 100644 --- a/rpc/ws/server.go +++ b/rpc/ws/server.go @@ -120,5 +120,5 @@ func sockHandler(xeth *rpc.EthereumApi) websocket.Handler { websocket.JSON.Send(conn, rpc.RpcSuccessResponse{JsonRpc: reqParsed.JsonRpc, ID: reqParsed.ID, Error: false, Result: response}) } } - return fn + return websocket.Handler(fn) } |