Return a websocker.Handler of the function
This commit is contained in:
parent
dd3f38fe5b
commit
d8c6168d11
@ -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 New Issue
Block a user