{"id":16955580,"url":"https://github.com/rcdexta/torpedo","last_synced_at":"2026-05-16T13:36:31.609Z","repository":{"id":138671232,"uuid":"59901113","full_name":"rcdexta/torpedo","owner":"rcdexta","description":"Websockets Orchestrator ","archived":false,"fork":false,"pushed_at":"2017-04-07T16:50:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T08:45:25.056Z","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/rcdexta.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-28T15:27:32.000Z","updated_at":"2017-04-07T11:17:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe7175c7-a6a2-4957-b26f-93730db03dcb","html_url":"https://github.com/rcdexta/torpedo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Ftorpedo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Ftorpedo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Ftorpedo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Ftorpedo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcdexta","download_url":"https://codeload.github.com/rcdexta/torpedo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244801133,"owners_count":20512600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-13T22:12:41.859Z","updated_at":"2026-05-16T13:36:26.590Z","avatar_url":"https://github.com/rcdexta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Torpedo\n\nTorpedo is a generic pass-through websockets server based on socket.io.\n\n## Connecting and receiving messages from Torpedo\n\nThe following example uses socket.io javascript client - https://github.com/automattic/socket.io-client\n```\nvar namespace = '/test';\nvar event = 'NEW_NOTIF';\nvar torpedoUrl = 'https://torpedo-staging.pro.com'\nvar socket = io(torpedoUrl + namespace);\n\nsocket.on(event, function(data) {\n  console.log(data);\n});\n```\n\n## Broadcasting messages to torpedo clients\n\nTorpedo exposes an api endpoint '/notify' to which messages can be sent as POST requests.\nFollowing is the expected format of the request:\n\n```\nPOST '/notify'\n{\n  \"namespace\":\"cooper\",\n  \"event\":\"NEW_NOTIF\",\n  \"payload\":{\n  ...\n  }\n}\n```\n\nAny content within the payload will be sent to connected clients without any modifications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdexta%2Ftorpedo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcdexta%2Ftorpedo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdexta%2Ftorpedo/lists"}