mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-24 18:28:10 +00:00
fix ws server param type
This commit is contained in:
parent
26abc0e3d2
commit
b067143788
@ -78,7 +78,7 @@ proc handleRequest(rpc: RpcWebSocketServer, request: HttpRequest) {.async.} =
|
||||
|
||||
proc initWebsocket(rpc: RpcWebSocketServer, compression: bool,
|
||||
authHooks: seq[WsAuthHook],
|
||||
rng: Rng) =
|
||||
rng: ref HmacDrbgContext) =
|
||||
if compression:
|
||||
let deflateFactory = deflateFactory()
|
||||
rpc.wsserver = WSServer.new(factories = [deflateFactory], rng = rng)
|
||||
|
Loading…
x
Reference in New Issue
Block a user