diff --git a/test/server.nim b/test/server.nim index a0b83b19de..77896826d1 100644 --- a/test/server.nim +++ b/test/server.nim @@ -1,7 +1,7 @@ -import ../ws, chronos, asynchttpserver +import ws, chronos, asynchttpserver proc cb(req: Request) {.async.} = - var ws = await newWebSocket(req) + let (ws, error) = await newWebSocket(req) ws.close() var server = newAsyncHttpServer() diff --git a/ws/ws.nim b/ws/ws.nim index 44e390146b..18fecb3241 100644 --- a/ws/ws.nim +++ b/ws/ws.nim @@ -1,4 +1,4 @@ -import chronos, asyncdispatch, asynchttpserver, base64, nativesockets +import chronos, asynchttpserver, base64, nativesockets type HeaderVerificationError* {.pure.} = enum None