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…
Reference in New Issue