summaryrefslogtreecommitdiff
path: root/ws/example_client.ts
diff options
context:
space:
mode:
authorDmitry Sharshakov <d3dx12.xx@gmail.com>2019-09-21 21:37:05 +0300
committerRyan Dahl <ry@tinyclouds.org>2019-09-21 14:37:05 -0400
commitf545f1d571a154c53f6bda3a30bd69a298d63846 (patch)
tree76b72af86f45aa5b753a2dbc01a0a7c6f72017b6 /ws/example_client.ts
parentb7dea16a379be5acb809b00816a67397491b24b8 (diff)
Fix types in example_client for ws module (denoland/deno_std#609)
Original: https://github.com/denoland/deno_std/commit/a4a8bb2948e5984656724c51a803293ce82c035f
Diffstat (limited to 'ws/example_client.ts')
-rw-r--r--ws/example_client.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/ws/example_client.ts b/ws/example_client.ts
index 665c4cd8c..e3f2f355e 100644
--- a/ws/example_client.ts
+++ b/ws/example_client.ts
@@ -44,7 +44,9 @@ async function main(): Promise<void> {
}
// FIXME: Without this,
// sock.receive() won't resolved though it is readable...
- await new Promise((resolve): void => setTimeout(resolve, 0));
+ await new Promise((resolve): void => {
+ setTimeout(resolve, 0);
+ });
}
await sock.close(1000);
// FIXME: conn.close() won't shutdown process...