aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/ws
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 04:26:42 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 04:26:42 +0800
commitd8c6168d11dda55ffb10bc70601e74e347c156e1 (patch)
tree2566a52ac3baf4a3ad005f6bd08fb15ad15eb81a /rpc/ws
parentdd3f38fe5b283f3c728823cb2d4e844712017e48 (diff)
downloadgo-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar
go-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.gz
go-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.bz2
go-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.lz
go-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.xz
go-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.tar.zst
go-tangerine-d8c6168d11dda55ffb10bc70601e74e347c156e1.zip
Return a websocker.Handler of the function
Diffstat (limited to 'rpc/ws')
-rw-r--r--rpc/ws/server.go2
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)
}