diff --git a/websock/session.nim b/websock/session.nim index 5456f37..6774193 100644 --- a/websock/session.nim +++ b/websock/session.nim @@ -455,6 +455,6 @@ proc close*( # read frames until closed while ws.readyState != ReadyState.Closed: - discard await ws.recvMsg() + discard await ws.readFrame() except CatchableError as exc: trace "Exception closing", exc = exc.msg