{"id":23145843,"url":"https://github.com/kriuchkov/sockjs-flask","last_synced_at":"2026-03-04T15:01:38.229Z","repository":{"id":57469109,"uuid":"102445682","full_name":"kriuchkov/sockjs-flask","owner":"kriuchkov","description":"sockjs server for Flask with gevent","archived":false,"fork":false,"pushed_at":"2018-02-22T10:52:15.000Z","size":57,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-04T11:14:17.831Z","etag":null,"topics":["flask","sockjs","sockjs-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kriuchkov.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-05T06:57:30.000Z","updated_at":"2018-10-18T05:49:52.000Z","dependencies_parsed_at":"2022-09-19T10:10:25.140Z","dependency_job_id":null,"html_url":"https://github.com/kriuchkov/sockjs-flask","commit_stats":null,"previous_names":["pycodi/sockjs-flask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kriuchkov/sockjs-flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriuchkov%2Fsockjs-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriuchkov%2Fsockjs-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriuchkov%2Fsockjs-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriuchkov%2Fsockjs-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kriuchkov","download_url":"https://codeload.github.com/kriuchkov/sockjs-flask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriuchkov%2Fsockjs-flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30084685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","sockjs","sockjs-server"],"created_at":"2024-12-17T16:16:56.666Z","updated_at":"2026-03-04T15:01:38.188Z","avatar_url":"https://github.com/kriuchkov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SockJS server for Flask\n============\n\n.. image:: https://img.shields.io/pypi/v/sockjs-flask.svg\n    :target: https://pypi.python.org/pypi/sockjs-flask\n    :alt: Latest PyPI version\n\n.. image:: https://travis-ci.org/borntyping/cookiecutter-pypackage-minimal.png\n   :target: https://travis-ci.org/borntyping/cookiecutter-pypackage-minimal\n   :alt: Latest Travis CI build status\n\n`sockjs` is a `SockJS \u003chttp://sockjs.org\u003e`_ integration for Flask.  SockJS interface\nis implemented as a flask route. Its possible to create any number of different sockjs routes, ie `/sockjs/*` or `/mycustom-sockjs/*`.\nYou can provide different session implementation and management for each sockjs route.\n\nUsage\n-----\n\nClient side code::\n\n  \u003cscript src=\"//cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.1.4/sockjs.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n      var sock = new SockJS('http://localhost:5000/sockjs');\n\n      sock.onopen = function() {\n        console.log('open');\n      };\n\n      sock.onmessage = function(obj) {\n        console.log(obj);\n      };\n\n      sock.onclose = function() {\n        console.log('close');\n      };\n  \u003c/script\u003e\n\n\nInstallation\n------------\n1. Install virtualenv::\n\n    $ wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py\n    $ python3.6 ./virtualenv.py --no-site-packages sockjs\n\n3. Install sockjs-flask from pypi and then install::\n\n    $ pip install sockjs-flask\n    $ cd sockjs\n    $ ../sockjs/bin/python setup.py\n\nTo run chat example use following command::\n\n    $ ./sockjs/bin/python ./sockjs-flask/examples/main.py\n\nRequirements\n^^^^^^^^^^^^\n\n- Python \u003e= 3.4\n- gunicorn\n- gevent\n- gevent-websocket\n- kombu (for subscription)\n\nAuthors\n-------\n\n`sockjs-flask` was written by `Kryuchkov Nikita \u003cpycodi@hotmail.com\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriuchkov%2Fsockjs-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkriuchkov%2Fsockjs-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriuchkov%2Fsockjs-flask/lists"}