From aba24cec9a33f6823bafc96e7ed17346f8b41b7c Mon Sep 17 00:00:00 2001 From: Mqx <62719703+Mqxx@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:13:16 +0200 Subject: [PATCH] Update web_socket_server.ts --- web_socket_server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_socket_server.ts b/web_socket_server.ts index 7ff7a32..0952608 100644 --- a/web_socket_server.ts +++ b/web_socket_server.ts @@ -1,6 +1,6 @@ export function WebSocketServer(options : Deno.ServeOptions | Deno.ServeTlsOptions, handler : (webSocket : WebSocket, request? : Request) => void) { Deno.serve({...options, onListen({hostname, port}) { - console.log(`Listening on ws://${hostname || 'localhost'}:${port}/ (WebSocketServer)`); + console.log(`Listening on ws://${hostname}:${port}/ (WebSocketServer)`); }}, (request) => { if (request.headers.get("upgrade") != "websocket") { return new Response(null, { status: 501 });