Return a websocker.Handler of the function

This commit is contained in:
Taylor Gerring 2015-01-27 14:26:42 -06:00
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)
}