Skip to content

Commit 6055643

Browse files
authored
Update web_socket_server.ts
1 parent 0d66d30 commit 6055643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_socket_server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function WebSocketServer(options : Deno.ServeOptions | Deno.ServeTlsOptions, handler : (webSocket : WebSocket, request? : Request) => void) {
22
Deno.serve({...options, onListen({hostname, port}) {
3-
console.log(`Listening on ws://${hostname | 'localhost'}:${port}/ (WebSocketServer)`);
3+
console.log(`Listening on ws://${hostname || 'localhost'}:${port}/ (WebSocketServer)`);
44
}}, (request) => {
55
if (request.headers.get("upgrade") != "websocket") {
66
return new Response(null, { status: 501 });

0 commit comments

Comments
 (0)