{ "info": { "author": "Joel Martin", "author_email": "github@martintribe.org", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "## websockify: WebSockets support for any application/server\n\nwebsockify was formerly named wsproxy and was part of the\n[noVNC](https://github.com/novnc/noVNC) project.\n\nAt the most basic level, websockify just translates WebSockets traffic\nto normal socket traffic. Websockify accepts the WebSockets handshake,\nparses it, and then begins forwarding traffic between the client and\nthe target in both directions.\n\n### News/help/contact\n\nNotable commits, announcements and news are posted to\n@noVNC\n\nIf you are a websockify developer/integrator/user (or want to be)\nplease join the noVNC/websockify\ndiscussion group\n\nBugs and feature requests can be submitted via [github\nissues](https://github.com/novnc/websockify/issues).\n\nIf you want to show appreciation for websockify you could donate to a great\nnon-profits such as: [Compassion\nInternational](http://www.compassion.com/), [SIL](http://www.sil.org),\n[Habitat for Humanity](http://www.habitat.org), [Electronic Frontier\nFoundation](https://www.eff.org/), [Against Malaria\nFoundation](http://www.againstmalaria.com/), [Nothing But\nNets](http://www.nothingbutnets.net/), etc. Please tweet @noVNC if you do.\n\n### WebSockets binary data\n\nStarting with websockify 0.5.0, only the HyBi / IETF\n6455 WebSocket protocol is supported. There is no support for the older\nBase64 encoded data format.\n\n\n### Encrypted WebSocket connections (wss://)\n\nTo encrypt the traffic using the WebSocket 'wss://' URI scheme you need to\ngenerate a certificate and key for Websockify to load. By default, Websockify\nloads a certificate file name `self.pem` but the `--cert=CERT` and `--key=KEY`\noptions can override the file name. You can generate a self-signed certificate\nusing openssl. When asked for the common name, use the hostname of the server\nwhere the proxy will be running:\n\n```\nopenssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem\n```\n\nFor a self-signed certificate to work, you need to make your client/browser\nunderstand it. You can do this by installing it as accepted certificate, or by\nusing that same certificate for a HTTPS connection to which you navigate first\nand approve. Browsers generally don't give you the \"trust certificate?\" prompt\nby opening a WSS socket with invalid certificate, hence you need to have it\nacccept it by either of those two methods.\n\nIf you have a commercial/valid SSL certificate with one ore more intermediate\ncertificates, concat them into one file, server certificate first, then the\nintermediate(s) from the CA, etc. Point to this file with the `--cert` option\nand then also to the key with `--key`. Finally, use `--ssl-only` as needed.\n\n\n### Additional websockify features\n\nThese are not necessary for the basic operation.\n\n* Daemonizing: When the `-D` option is specified, websockify runs\n in the background as a daemon process.\n\n* SSL (the wss:// WebSockets URI): This is detected automatically by\n websockify by sniffing the first byte sent from the client and then\n wrapping the socket if the data starts with '\\x16' or '\\x80'\n (indicating SSL).\n\n* Session recording: This feature that allows recording of the traffic\n sent and received from the client to a file using the `--record`\n option.\n\n* Mini-webserver: websockify can detect and respond to normal web\n requests on the same port as the WebSockets proxy. This functionality\n is activated with the `--web DIR` option where DIR is the root of the\n web directory to serve.\n\n* Wrap a program: see the \"Wrap a Program\" section below.\n\n* Log files: websockify can save all logging information in a file.\n This functionality is activated with the `--log-file FILE` option\n where FILE is the file where the logs should be saved.\n\n* Authentication plugins: websockify can demand authentication for\n websocket connections and, if you use `--web-auth`, also for normal\n web requests. This functionality is activated with the\n `--auth-plugin CLASS` and `--auth-source ARG` options, where CLASS is\n usually one from auth_plugins.py and ARG is the plugin's configuration.\n\n* Token plugins: a single instance of websockify can connect clients to\n multiple different pre-configured targets, depending on the token sent\n by the client using the `token` URL parameter, or the hostname used to\n reach websockify, if you use `--host-token`. This functionality is\n activated with the `--token-plugin CLASS` and `--token-source ARG`\n options, where CLASS is usually one from token_plugins.py and ARG is\n the plugin's configuration.\n\n### Other implementations of websockify\n\nThe primary implementation of websockify is in python. There are\nseveral alternate implementations in other languages available in\nour sister repositories [websockify-js](https://github.com/novnc/websockify-js)\n(JavaScript/Node.js) and [websockify-other](https://github.com/novnc/websockify-other)\n (C, Clojure, Ruby).\n\nIn addition there are several other external projects that implement\nthe websockify \"protocol\". See the alternate implementation [Feature\nMatrix](https://github.com/novnc/websockify/wiki/Feature_Matrix) for\nmore information.\n\n\n### Wrap a Program\n\nIn addition to proxying from a source address to a target address\n(which may be on a different system), websockify has the ability to\nlaunch a program on the local system and proxy WebSockets traffic to\na normal TCP port owned/bound by the program.\n\nThe is accomplished with a small LD_PRELOAD library (`rebind.so`)\nwhich intercepts bind() system calls by the program. The specified\nport is moved to a new localhost/loopback free high port. websockify\nthen proxies WebSockets traffic directed to the original port to the\nnew (moved) port of the program.\n\nThe program wrap mode is invoked by replacing the target with `--`\nfollowed by the program command line to wrap.\n\n `./run 2023 -- PROGRAM ARGS`\n\nThe `--wrap-mode` option can be used to indicate what action to take\nwhen the wrapped program exits or daemonizes.\n\nHere is an example of using websockify to wrap the vncserver command\n(which backgrounds itself) for use with\n[noVNC](https://github.com/novnc/noVNC):\n\n `./run 5901 --wrap-mode=ignore -- vncserver -geometry 1024x768 :1`\n\nHere is an example of wrapping telnetd (from krb5-telnetd). telnetd\nexits after the connection closes so the wrap mode is set to respawn\nthe command:\n\n `sudo ./run 2023 --wrap-mode=respawn -- telnetd -debug 2023`\n\nThe `wstelnet.html` page in the [websockify-js](https://github.com/novnc/websockify-js)\nproject demonstrates a simple WebSockets based telnet client (use\n'localhost' and '2023' for the host and port respectively).\n\n\n### Installing websockify\n\nDownload one of the releases or the latest development version, extract\nit and run `python setup.py install` as root in the directory where you\nextracted the files. Normally, this will also install numpy for better\nperformance, if you don't have it installed already. However, numpy is\noptional. If you don't want to install numpy or if you can't compile it,\nyou can edit setup.py and remove the `install_requires=['numpy'],` line\nbefore running `python setup.py install`.\n\nAfterwards, websockify should be available in your path. Run\n`websockify --help` to confirm it's installed correctly.\n\nChanges\n=======\n\n0.9.0\n-----\n\n* Base64 support removed and binary mode is now required\n* Low level WebSocket protocol handling now has its own class\n* Authentication now optionally required for web server\n* Server hostname can be used as the token\n* JWT/JWS/JWE can be used for the token\n* redis can be used for the token\n* Can now log to syslog\n* Improved latency by disabling Nagle for proxied connection\n* Added client certificate authentication\n* Support for password protected certificate key file\n* TLS ciphers and options are now configurable\n* Can be invoked via inetd\n* Lots of minor fixes...\n\n0.8.0\n-----\n\n* Make websockify properly terminate children on SIGTERM (#226)\n* Remove logging in signal handlers (this can cause Python to hang under certain conditions) (#219)\n* Make it easier to log to a file (#205)\n* Add support for IPv6 addresses in tokens in the TokenFile token plugins (#197)\n* Improve auth plugin framework to enable better support for HTTP auth (#194, #201)\n* Fix bug in JSONTokenAPI token plugin (#192)\n* Fix a missing variable in the exception handler (#178)\n\n0.7.0\n-----\n\n* Python 3 support fixes (#140, #155, #159)\n* Generic token-parsing plugins support (#162)\n* Generic authentication plugins support (#172)\n* Fixed frame corruption on big-endian systems (#161)\n* Support heartbeats (via PING) and automatic responses to PONG (#169)\n* Automatically reject unmasked client frames by default (strict mode) (#174)\n* Automatically restart interrupted select calls (#175)\n* Make 'run' respect environment settings (including virtualenv) (#176)\n\n0.6.1 - May 11, 2015\n--------------------\n\n* **PATCH RELEASE**: Fixes a bug causing file_only to not be passed properly\n\n0.6.0 - Feb 18, 2014\n--------------------\n\n* **NOTE** : 0.6.0 will break existing code that sub-classes WebsocketProxy\n* Refactor to use standard SocketServer RequestHandler design\n* Fix zombie process bug on certain systems when using multiprocessing\n* Add better unit tests\n* Log information via python `logging` module\n\n0.5.1 - Jun 27, 2013\n--------------------\n\n * use upstream einaros/ws (>=0.4.27) with websockify.js\n * file_only and no_parent security options for WSRequestHandler\n * Update build of web-socket-js (c0855c6cae)\n * add include/web-socket-js-project submodule to gimite/web-socket-js\n for DSFG compliance.\n * drop Hixie protocol support\n\n0.4.1 - Mar 12, 2013\n--------------------\n\n * ***NOTE*** : 0.5.0 will drop Hixie protocol support\n * add include/ directory and remove some dev files from source\n distribution.\n\n0.4.0 - Mar 12, 2013\n--------------------\n\n * ***NOTE*** : 0.5.0 will drop Hixie protocol support\n * use Buffer base64 support in Node.js implementation\n\n0.3.0 - Jan 15, 2013\n--------------------\n\n * refactor into modules: websocket, websocketproxy\n * switch to web-socket-js that uses IETF 6455\n * change to MPL 2.0 license for include/*.js\n * fix session recording\n\n0.2.1 - Oct 15, 2012\n--------------------\n\n * re-released with updated version number\n\n0.2.0 - Sep 17, 2012\n--------------------\n\n * Binary data support in websock.js\n * Target config file/dir and multiple targets with token selector\n * IPv6 fixes\n * SSL target support\n * Proxy to/from unix socket\n\n\n0.1.0 - May 11, 2012\n--------------------\n\n * Initial versioned release.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/novnc/websockify", "keywords": "noVNC websockify", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "websockify", "package_url": "https://pypi.org/project/websockify/", "platform": "", "project_url": "https://pypi.org/project/websockify/", "project_urls": { "Homepage": "https://github.com/novnc/websockify" }, "release_url": "https://pypi.org/project/websockify/0.9.0/", "requires_dist": null, "requires_python": "", "summary": "Websockify.", "version": "0.9.0" }, "last_serial": 5671477, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "29b6549d3421907de4bbd881ecc2e1b1", "sha256": "e5af73e5d1edee91dbd28bf9fc710b5c23f4183de0e78d5f4fbe68525b53375b" }, "downloads": -1, "filename": "websockify-0.3.0.tar.gz", "has_sig": false, "md5_digest": "29b6549d3421907de4bbd881ecc2e1b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20265, "upload_time": "2013-01-15T17:43:56", "url": "https://files.pythonhosted.org/packages/6a/19/631fa1629eaaf5b3a142da70194802f997a95d4ff3bac216a4dc6aaec420/websockify-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "d1c12a7cb3833ed383dff300aa873a0f", "sha256": "0369c1e668df850c7d60ff629e15258bc7ab796feb2e6c6ac6d65fcbe8b3faa1" }, "downloads": -1, "filename": "websockify-0.4.0.tar.gz", "has_sig": false, "md5_digest": "d1c12a7cb3833ed383dff300aa873a0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20371, "upload_time": "2013-03-12T18:18:36", "url": "https://files.pythonhosted.org/packages/7f/32/be3c4a1cfc290e6051371468cd8c69ff30b201200aa017def2bcd512547b/websockify-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "9ce7925ee9011967d810bdc688141b87", "sha256": "6f7095320b109c7f082c9db0dc0456469be5721caa06afb3c2473585aff533d0" }, "downloads": -1, "filename": "websockify-0.4.1.tar.gz", "has_sig": false, "md5_digest": "9ce7925ee9011967d810bdc688141b87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18294, "upload_time": "2013-03-12T18:49:49", "url": "https://files.pythonhosted.org/packages/48/25/542982599c5726896f5fcf8ea3fde4cd3104efbbd94a3e2feb5b48ad9164/websockify-0.4.1.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "cdee6d6754c85814e1e6dcdef18b9785", "sha256": "e48d5c790c9ce5ac938d76fd0a9019aad2a33401fb1702b6b84263959f64522b" }, "downloads": -1, "filename": "websockify-0.5.1.tar.gz", "has_sig": false, "md5_digest": "cdee6d6754c85814e1e6dcdef18b9785", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 833809, "upload_time": "2013-06-27T21:38:37", "url": "https://files.pythonhosted.org/packages/ae/c1/b9c4c423376d37ce63aa65ac75dc582ce5dd3378d8d850b3d124d674f894/websockify-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "673a70d007c1a2445c8ef5c7a3067c07", "sha256": "da4364f54fdcc5350059febe2e8fdf2b53d16cf04ee23c71315e561119f44529" }, "downloads": -1, "filename": "websockify-0.6.0.tar.gz", "has_sig": false, "md5_digest": "673a70d007c1a2445c8ef5c7a3067c07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 223120, "upload_time": "2014-02-26T02:29:18", "url": "https://files.pythonhosted.org/packages/4a/c1/735203467e4866d260c895b27b99b549d41117f21a5af0acbd4b60159690/websockify-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "b16c07014b36f0e4fdffe61777b25a63", "sha256": "3eeeba51a38798186dae6202d6161ce795da3872c209bb0987e8423814cb3b2b" }, "downloads": -1, "filename": "websockify-0.6.1.zip", "has_sig": false, "md5_digest": "b16c07014b36f0e4fdffe61777b25a63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 236298, "upload_time": "2015-05-12T01:12:03", "url": "https://files.pythonhosted.org/packages/a9/cd/de85a7010feee78cb98e6eba97d4285aa814cde0e968dae8087b4811430c/websockify-0.6.1.zip" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "d72fd7ffb9c0f4b8ad36be3dade9e248", "sha256": "0cb3c7b954c88cb1950617fd6e36e2addf6b04adaaaded4ae962e72babaad7ec" }, "downloads": -1, "filename": "websockify-0.7.0.tar.gz", "has_sig": false, "md5_digest": "d72fd7ffb9c0f4b8ad36be3dade9e248", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 231838, "upload_time": "2015-07-24T01:16:51", "url": "https://files.pythonhosted.org/packages/4e/b4/57120ab913578feedce9aea809230eb56fa7fe4863cbc73584f48f8faec9/websockify-0.7.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "8fa547ca4de84a96aa3472d55fbcdd59", "sha256": "547d3d98c5081f2dc2872a2e4a3aef33e0ee5141d5f6209204aab2f4a41548d2" }, "downloads": -1, "filename": "websockify-0.8.0.tar.gz", "has_sig": false, "md5_digest": "8fa547ca4de84a96aa3472d55fbcdd59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 234450, "upload_time": "2016-02-18T19:13:07", "url": "https://files.pythonhosted.org/packages/66/48/2e35166c957639ddb4cb11ce9783ad3ee9bf96f220354ce2684ee95feeb7/websockify-0.8.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "ff745fd67457fd077915753c9b808b2a", "sha256": "c35b5b79ebc517d3b784dacfb993be413a93cda5222c6f382443ce29c1a6cada" }, "downloads": -1, "filename": "websockify-0.9.0.tar.gz", "has_sig": false, "md5_digest": "ff745fd67457fd077915753c9b808b2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37363, "upload_time": "2019-08-13T11:54:17", "url": "https://files.pythonhosted.org/packages/c4/5b/16ec1e9f4fc536846d95a01a77d97da12f8042ca5cf83cdf3dd0442e881c/websockify-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ff745fd67457fd077915753c9b808b2a", "sha256": "c35b5b79ebc517d3b784dacfb993be413a93cda5222c6f382443ce29c1a6cada" }, "downloads": -1, "filename": "websockify-0.9.0.tar.gz", "has_sig": false, "md5_digest": "ff745fd67457fd077915753c9b808b2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37363, "upload_time": "2019-08-13T11:54:17", "url": "https://files.pythonhosted.org/packages/c4/5b/16ec1e9f4fc536846d95a01a77d97da12f8042ca5cf83cdf3dd0442e881c/websockify-0.9.0.tar.gz" } ] }