Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> python >> python-websockify
etiona  ]
[ 源代码: websockify  ]

软件包: python-websockify (0.8.0+dfsg1-9)

WebSockets support for any application/server - Python 2

websockify was formerly named wsproxy and was part of the noVNC project.

At the most basic level, websockify just translates WebSockets traffic to normal socket traffic. Websockify accepts the WebSockets handshake, parses it, and then begins forwarding traffic between the client and the target in both directions.

Websockify supports all versions of the WebSockets protocol (Hixie and HyBi). The older Hixie versions of the protocol only support UTF-8 text payloads. In order to transport binary data over UTF-8 an encoding must used to encapsulate the data within UTF-8.

With Hixie clients, Websockify uses base64 to encode all traffic to and from the client. This does not affect the data between websockify and the server.

With HyBi clients, websockify negotiates whether to base64 encode traffic to and from the client via the subprotocol header (Sec-WebSocket-Protocol). The valid subprotocol values are 'binary' and 'base64' and if the client sends both then the server (the Python implementation) will prefer 'binary'. The 'binary' subprotocol indicates that the data will be sent raw using binary WebSocket frames. Some HyBi clients (such as the Flash fallback and older Chrome and iOS versions) do not support binary data which is why the negotiation is necessary.

This package provides the Python 2 module.

其他与 python-websockify 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: python
    interactive high-level object-oriented language (default version)
  • dep: python-numpy
    Numerical Python adds a fast array facility to the Python language
  • dep: python-pkg-resources
    Package Discovery and Resource Access using pkg_resources
  • dep: python2.7
    Interactive high-level object-oriented language (version 2.7)
  • dep: websockify-common (= 0.8.0+dfsg1-9)
    WebSockets support for any application/server - shared files

下载 python-websockify

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 29.3 kB126 kB [文件列表]
i386 29.3 kB126 kB [文件列表]