diff --git a/websock/session.nim b/websock/session.nim index 5c0dbbb519..c6da237d78 100644 --- a/websock/session.nim +++ b/websock/session.nim @@ -153,7 +153,7 @@ proc handleClose*( code = StatusFulfilled reason = "" - case payLoad.len: + case payload.len: of 0: code = StatusNoStatus of 1: