diff --git a/ws/example_client.ts b/ws/example_client.ts index 665c4cd8ca..e3f2f355eb 100644 --- a/ws/example_client.ts +++ b/ws/example_client.ts @@ -44,7 +44,9 @@ async function main(): Promise { } // 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...