Add Todo to use chronos async fd

This commit is contained in:
Arijit Das 2020-12-01 19:19:13 +05:30
parent afb7e4d86e
commit 19a573e756
1 changed files with 1 additions and 0 deletions

View File

@ -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)