通过AF_UNIX套接字的WebSocket [英] WebSocket over AF_UNIX socket

查看:174
本文介绍了通过AF_UNIX套接字的WebSocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在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 "http://www.twistedmatrix.com/" 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_UNIX套接字的WebSocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆