{"id":16340769,"url":"https://github.com/casey/floodhub","last_synced_at":"2025-11-04T21:30:25.249Z","repository":{"id":81087534,"uuid":"63199635","full_name":"casey/floodhub","owner":"casey","description":"A simple websocket server for heroku","archived":false,"fork":false,"pushed_at":"2016-07-13T20:25:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T01:18:24.952Z","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/casey.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-07-12T23:41:09.000Z","updated_at":"2016-07-13T19:37:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbe2a8a7-b285-4abc-83f9-3a50d7a00bca","html_url":"https://github.com/casey/floodhub","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/casey%2Ffloodhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Ffloodhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Ffloodhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Ffloodhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casey","download_url":"https://codeload.github.com/casey/floodhub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239441677,"owners_count":19639122,"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-10T23:57:48.516Z","updated_at":"2025-11-04T21:30:25.206Z","avatar_url":"https://github.com/casey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"floodhub\n--------\n\nA simple websocket server.\n\nMessages sent by clients should be JSON strings that deserialize to objects with the following fields:\n\n`namespace`: The message namespace.\n\n`data`:      The message payload.\n\n`type`:      A string identifying the type of the message.\n\n`to`:        A numeric ID will cause the message to be delivered\n             to the client with that ID. The string \"all\" will\n             cause the message to be delivered to all connected\n             clients.\n\nThe server will add a `from` field set to the numeric ID of the\noriginating client. The server assigns IDs to each client that\nconnects, starting at 0.\n\nNamespaces are not handled specially by the server, and are\nthere so multiple apps can ignore each other's messages.\n\nFor example, the following message sent by client 0:\n```\n{\n  \"namespace\": \"something-cool\",\n  \"type\":      \"hello\",\n  \"data\":      [1,2,3],\n  \"to\":        \"all\"\n}\n```\n\nWill be transmitted to all clients as:\n```\n{\n  \"namespace\": \"something-cool\",\n  \"type\":      \"hello\",\n  \"data\":      [1,2,3],\n  \"to\":        \"all\",\n  \"from\":      0\n}\n```\n\nThe following message sent by client 1:\n```\n{\n  \"namespace\": \"something-cool\",\n  \"type\":      \"goodbye\",\n  \"data\":      [1,2,3],\n  \"to\":        3\n}\n```\n\nWill be transmitted to client 3 as:\n```\n{\n  \"namespace\": \"something-cool\",\n  \"type\":      \"goodbye\",\n  \"data\":      [1,2,3],\n  \"to\":        3,\n  \"from\":      1\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Ffloodhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasey%2Ffloodhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Ffloodhub/lists"}