From c85b1c06a9804ad41fbccf8fe5a5689f28eb049e Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 19 Jun 2019 12:22:01 +0800 Subject: lint: add max line length rules (denoland/deno_std#507) Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162 --- ws/example_client.ts | 3 ++- ws/mod.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ws') diff --git a/ws/example_client.ts b/ws/example_client.ts index c2be9d76e..cdb482410 100644 --- a/ws/example_client.ts +++ b/ws/example_client.ts @@ -42,7 +42,8 @@ async function main(): Promise { } else { await sock.send(line); } - // FIXME: Without this, sock.receive() won't resolved though it is readable... + // FIXME: Without this, + // sock.receive() won't resolved though it is readable... await new Promise((resolve): void => setTimeout(resolve, 0)); } await sock.close(1000); diff --git a/ws/mod.ts b/ws/mod.ts index d74e4a92b..946eb4bf4 100644 --- a/ws/mod.ts +++ b/ws/mod.ts @@ -474,7 +474,10 @@ async function handshake( } } -/** Connect to given websocket endpoint url. Endpoint must be acceptable for URL */ +/** + * Connect to given websocket endpoint url. + * Endpoint must be acceptable for URL. + */ export async function connectWebSocket( endpoint: string, headers: Headers = new Headers() -- cgit v1.2.3