{"id":23146844,"url":"https://github.com/bowmans-dev/node_js_websocket","last_synced_at":"2025-04-04T13:24:58.356Z","repository":{"id":175529626,"uuid":"582566426","full_name":"bowmans-dev/node_js_websocket","owner":"bowmans-dev","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T23:43:25.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"library","last_synced_at":"2025-02-09T23:14:26.390Z","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/bowmans-dev.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":"2022-12-27T08:21:43.000Z","updated_at":"2022-12-27T08:24:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1205956-fd19-4c0b-b889-d2eed49b119d","html_url":"https://github.com/bowmans-dev/node_js_websocket","commit_stats":null,"previous_names":["bowmans-dev/node_js_websocket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnode_js_websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnode_js_websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnode_js_websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnode_js_websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowmans-dev","download_url":"https://codeload.github.com/bowmans-dev/node_js_websocket/tar.gz/refs/heads/library","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247183443,"owners_count":20897594,"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-12-17T16:38:56.419Z","updated_at":"2025-04-04T13:24:58.324Z","avatar_url":"https://github.com/bowmans-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Websocket using Node JS - \nhttps://github.com/hnasr/javascript_playground/tree/master/websocket-demo\n### https://www.youtube.com/watch?v=2Nt-ZrNP22A\n\n### To set up locally run:\n```\nnpm i\n```\n### To initialize a new websocket connection and begin receiving messages from the server\n### Enter the following in your browser dev-tools console:\n\n```\nws = new WebSocket(\"ws://localhost:8080\"); \n```\n\n```\nws.onmessage = message =\u003e console.log(`Received: ${message.data}`);\n```\n\n- Use connection.send to send stuff to the client using the debugger command line:\n\n```\n connection.send(\"Hello client from the server\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fnode_js_websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowmans-dev%2Fnode_js_websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fnode_js_websocket/lists"}