mirror of
https://github.com/codex-storage/nim-websock.git
synced 2025-02-02 13:53:21 +00:00
Add Todo to use chronos async fd
This commit is contained in:
parent
afb7e4d86e
commit
19a573e756
@ -73,6 +73,7 @@ proc newWebSocket*(req: Request, protocol: string = ""): Future[tuple[ws: AsyncW
|
||||
|
||||
var ws = WebSocket()
|
||||
ws.masked = false
|
||||
# Todo: Change this to chronos AsyncFD
|
||||
ws.tcpSocket = req.client
|
||||
ws.protocol = protocol
|
||||
let (ws, error) = await ws.handshake(req.headers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user