{"id":16880558,"url":"https://github.com/squaremo/sockjs-bridge","last_synced_at":"2026-04-29T10:31:19.486Z","repository":{"id":3100833,"uuid":"4126380","full_name":"squaremo/sockjs-bridge","owner":"squaremo","description":"Bridge for proxying SockJS connections into some other network","archived":false,"fork":false,"pushed_at":"2012-04-30T14:11:10.000Z","size":112,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-09T07:04:50.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squaremo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-24T15:39:40.000Z","updated_at":"2022-10-23T14:29:40.000Z","dependencies_parsed_at":"2022-08-06T13:15:25.697Z","dependency_job_id":null,"html_url":"https://github.com/squaremo/sockjs-bridge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/squaremo/sockjs-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Fsockjs-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Fsockjs-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Fsockjs-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Fsockjs-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squaremo","download_url":"https://codeload.github.com/squaremo/sockjs-bridge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Fsockjs-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32421481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-13T15:59:14.711Z","updated_at":"2026-04-29T10:31:19.468Z","avatar_url":"https://github.com/squaremo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SockJS bridge\n\nThis is a server that proxies SockJS connections. Why bother? Well,\nnot everyone can have a SockJS server in their chosen language,\nwhereas TCP/ZeroMQ bindings are far more common. Also, you may wish to\ndeploy the bridge independently of your application, because of\nReasons.\n\n## Debugging\n\n    $ npm install \u0026\u0026 node server.js\n\nor\n\n    $ npm start\n\nstarts a server that listens for SockJS connections on port 8000 and\nfor applications on port 5000.\n\nThe Node.JS module `client` has a simple client that speaks the proxy\nto app protocol. To simulate an application using the bridge, connect\na client to `localhost:5000`:\n\n    $ var client = require('./client').connect('tcp://localhost:5000');\n    $ client.on('open', function(id) { client.accept(id); });\n    $ client.on('recv', function(id, data) {console.log(data.toString());});\n\nTo send data to one or more connections, use\n\n   $ client.send(data, connectionId ...);\n\nThe `index.html` in the top directory simply includes the appropriate\nscript tag so you can open a connection. Try serving it through your\nfavourite web server, e.g.:\n\n    $ python -m SimpleHTTPServer 8080\n\nThen you can point a browser at that page, open a JavaScript console\nin the browser, and open a connection (as suggested on the page\nitself):\n\n    \u003e var sock = new SockJS('http://localhost:8000/socks');\n    \u003e sock.onmesssage = function(msg) { console.log(msg); };\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquaremo%2Fsockjs-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquaremo%2Fsockjs-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquaremo%2Fsockjs-bridge/lists"}