mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-12 14:19:04 +00:00
Return a websocker.Handler of the function
This commit is contained in:
parent
dd3f38fe5b
commit
d8c6168d11
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue