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 });