websockets / ws

Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js
MIT License
21.56k stars 2.42k forks source link

Client connection to vsock #1871

Closed ppmag closed 3 years ago

ppmag commented 3 years ago

I understand, it is possible to connect to UNIX socket using "ws+unix://" url proto prefix.

My question: is there a way to connect to vsock (AF_VSOCK family) ? Vsock addresses usually are represented as two numbers separated by colon: cid:port

The only workaround I can see for now is to use socat tool.
Is there a better way?

Vsock man page: http://manpages.ubuntu.com/manpages/cosmic/man7/vsock.7.html

lpinca commented 3 years ago

No, this is not supported. The Node.js net module only allows TCP and IPC connections.

lpinca commented 3 years ago

I'm closing this as answered. Discussion can continue if needed.