include/websock.js: client library for websockify.

The Websock object from websock.js is similar to the standard
WebSocket object but Websock enables communication with raw TCP
sockets (i.e. the binary stream) via websockify. This is accomplished
by base64 encoding the data stream between Websock and websockify.

Websock has built-in receive queue buffering; the message event
does not contain actual data but is simply a notification that
there is new data available. Several rQ* methods are available to
read binary data off of the receive queue.
This commit is contained in:
Joel Martin
2011-01-13 00:17:01 -06:00
parent 6d1e216115
commit 124f28c63a
2 changed files with 329 additions and 2 deletions
+16 -2
View File
@@ -1,6 +1,6 @@
## websockify: WebSockets support for any application/server
websockify was formerly named `wsproxy` and was part of the
websockify was formerly named wsproxy and was part of the
[noVNC](https://github.com/kanaka/noVNC) project.
At the most basic level, websockify just translates WebSockets traffic
@@ -15,6 +15,20 @@ case the data from the client is not a full WebSockets frame (i.e.
does not end in 255).
### Websock Javascript library
The `include/websock.js` Javascript library library provides a Websock
object that is similar to the standard WebSocket object but Websock
enables communication with raw TCP sockets (i.e. the binary stream)
via websockify. This is accomplished by base64 encoding the data
stream between Websock and websockify.
Websock has built-in receive queue buffering; the message event
does not contain actual data but is simply a notification that
there is new data available. Several rQ* methods are available to
read binary data off of the receive queue.
### Additional websockify features
These are not necessary for the basic operation.
@@ -49,7 +63,7 @@ These are not necessary for the basic operation.
The primary implementation of websockify is in python. There are two
other implementations of websockify in C, and Node (node.js) in the
`other` directory.
`other/` subdirectory.
Here is the feature support matrix for the the websockify
implementations: