diff options
Diffstat (limited to 'std/ws/example_client.ts')
-rw-r--r-- | std/ws/example_client.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/std/ws/example_client.ts b/std/ws/example_client.ts index e3f2f355e..a6649570e 100644 --- a/std/ws/example_client.ts +++ b/std/ws/example_client.ts @@ -44,9 +44,11 @@ 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... |