summaryrefslogtreecommitdiff
path: root/examples/ws.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-04-24 13:41:23 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-04-24 07:41:22 -0400
commitdcd01dd02530df0e799eb4227087680ffeb80d74 (patch)
tree8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /examples/ws.ts
parente1f7a60bb326f8299f339635c0738d28431afa0a (diff)
Eslint fixes (denoland/deno_std#356)
Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'examples/ws.ts')
-rw-r--r--examples/ws.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ws.ts b/examples/ws.ts
index 83e890bc0..f5965b7eb 100644
--- a/examples/ws.ts
+++ b/examples/ws.ts
@@ -10,7 +10,7 @@ async function main(): Promise<void> {
console.log("websocket server is running on 0.0.0.0:8080");
for await (const req of serve("0.0.0.0:8080")) {
if (req.url === "/ws") {
- (async () => {
+ (async (): Promise<void> => {
const sock = await acceptWebSocket(req);
console.log("socket connected!");
for await (const ev of sock.receive()) {