Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix domain socket not working with node:http #27450

Open
StreetStrider opened this issue Dec 22, 2024 · 0 comments
Open

Unix domain socket not working with node:http #27450

StreetStrider opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working correctly node compat

Comments

@StreetStrider
Copy link

StreetStrider commented Dec 22, 2024

Version: deno 2.1.4+e6869d7

After recent deno websocket improvements, I got a lot of my ws code work. However, unix domain sockets seems to not be created.
deno-sock.tar.gz

import { Server } from 'node:http'
import { WebSocketServer } from 'npm:ws@8.18.0'

const server = new Server().listen({ path: 'ws+unix:///tmp/deno.sock' })
const wss = new WebSocketServer({ server })

wss.on('listening', () => console.log('listening'))
wss.on('error', () => console.log('error'))

This should create socket file in /tmp after listening, but it does not happen.

Extracted from:
#25470

@kt3k kt3k added bug Something isn't working correctly node compat labels Dec 25, 2024
@kt3k kt3k changed the title Unix domain socket not working Unix domain socket not working node:http.request Dec 25, 2024
@kt3k kt3k changed the title Unix domain socket not working node:http.request Unix domain socket not working node:http Dec 25, 2024
@kt3k kt3k changed the title Unix domain socket not working node:http Unix domain socket not working with node:http Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

No branches or pull requests

2 participants