Return a websocker.Handler of the function

pull/263/head
Taylor Gerring 10 years ago
parent dd3f38fe5b
commit d8c6168d11
  1. 2
      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)
}

Loading…
Cancel
Save