通过AF_UNIX套接字的WebSocket [英] WebSocket over AF_UNIX socket
问题描述
是否可以在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 支持通过
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_UNIX套接字的WebSocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!