是否可以在AF_UNIX套接字(Unix域套接字)上使用WebSocket?在技术上是否可行,如果可以,是否有任何实现(主要是浏览器运行时)支持它?
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?
推荐答案是的,这是可能的. AutobahnPython 支持通过任何流的WebSocket运行WebSocket "www.twistedmatrix/" rel ="nofollow">扭曲,例如:
Yes, this is possible. AutobahnPython supports running WebSocket over any stream-based transport supported by Twisted like:
- TCP
- TLS
- Unix域套接字
- 管道
- 序列
请参见此处.
FWIW,它还支持隧道化
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). 据我所知,除了WebSocket的TCP/TLS作为底层传输之外,没有浏览器支持任何其他功能. As far as I know, no browser supports anything but TCP/TLS for WebSocket as underyling transport.
更多推荐
通过AF
发布评论