summaryrefslogtreecommitdiff
path: root/std/ws/mod.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-06-12 09:19:29 -0400
committerGitHub <noreply@github.com>2020-06-12 09:19:29 -0400
commitd0970daacda0b6f6c2077c2f81948536b574bbe9 (patch)
treef116548be832ae6786449dd6f1257865efe38026 /std/ws/mod.ts
parentca1c2ee82207f2ead857ab4aeca48edff16827ae (diff)
make std deno-lint clean (#6240)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'std/ws/mod.ts')
-rw-r--r--std/ws/mod.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/std/ws/mod.ts b/std/ws/mod.ts
index f58828aea..4d3f79f74 100644
--- a/std/ws/mod.ts
+++ b/std/ws/mod.ts
@@ -262,7 +262,7 @@ class WebSocketImpl implements WebSocket {
payloadsLength = 0;
}
break;
- case OpCode.Close:
+ case OpCode.Close: {
// [0x12, 0x34] -> 0x1234
const code = (frame.payload[0] << 8) | frame.payload[1];
const reason = decode(
@@ -271,6 +271,7 @@ class WebSocketImpl implements WebSocket {
await this.close(code, reason);
yield { code, reason };
return;
+ }
case OpCode.Ping:
await this.enqueue({
opcode: OpCode.Pong,