Is it possible to use WebSocket
over AF_UNIX
sockets (Unix-domain sockets)? Is it technically possible, and if so, do any implementations (mainly browser runtimes) support it?
1 Answer
Yes, this is possible. AutobahnPython supports running WebSocket over any stream-based transport supported by Twisted like:
- TCP
- TLS
- Unix Domain Socket
- Pipes
- Serial
Please see here.
FWIW, it also supports tunneling any stream-based protocol over WebSocket. E.g. it allows you to run SSH over WebSocket (over any stream-based protocol).
As far as I know, no browser supports anything but TCP/TLS for WebSocket as underyling transport.
-
Do any browser runtimes (Gecko, WebKit etc) support this? May 20, 2014 at 8:09
-
@el.pescado I don't know for sure, but I guess it's unlikely. However, here is a related discussion: groups.google.com/forum/#!topic/mozilla.dev.b2g/_0PaKyrUxFg– oberstetMay 20, 2014 at 8:57