{"id":25022019,"url":"https://github.com/luisvalgoi/websocket-playground","last_synced_at":"2025-03-30T11:44:28.538Z","repository":{"id":118140528,"uuid":"392867123","full_name":"LuisValgoi/websocket-playground","owner":"LuisValgoi","description":"Repository dedicated to learn more about the usage of WebSockets.","archived":false,"fork":false,"pushed_at":"2021-08-05T03:44:50.000Z","size":240,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T13:42:55.967Z","etag":null,"topics":["websocket","websockets"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/LuisValgoi.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":"2021-08-05T01:23:10.000Z","updated_at":"2023-06-08T21:11:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"402d37de-70cc-4e0c-8276-36f46fbe67e9","html_url":"https://github.com/LuisValgoi/websocket-playground","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/LuisValgoi%2Fwebsocket-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisValgoi%2Fwebsocket-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisValgoi%2Fwebsocket-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisValgoi%2Fwebsocket-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisValgoi","download_url":"https://codeload.github.com/LuisValgoi/websocket-playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314118,"owners_count":20757457,"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":["websocket","websockets"],"created_at":"2025-02-05T13:39:49.950Z","updated_at":"2025-03-30T11:44:28.526Z","avatar_url":"https://github.com/LuisValgoi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Objective\n\nThis repository is dedicated to learn more about the usage of WebSockets.\n\n# Reference\n\n[https://www.youtube.com/watch?v=1BfCnjr_Vjg\u0026ab_channel=Fireship](https://www.youtube.com/watch?v=1BfCnjr_Vjg\u0026ab_channel=Fireship)\n\nhttps://www.valentinog.com/blog/socket-react/\n\n# What is\n\n- it enables you to build real-time features between a client \u0026 server\n\n# Example\n\n- multiplayer game\n- telefone communication\n\n# Process\n\n1 - client sends an HTTP open-connection request\n\n```bash\nGET ws://some-url HTTP/1.1\nConnection: Upgrade\nUpgrade: websocket\n```\n\n2 - if the server agrees, it sends an accept response\n\n```bash\nHTTP/1.1 101 Switching Protocols\nUpgrade: websocket\nConnection: Upgrade\n```\n\n3 - handshake is complete. \n\n4 - A `TCP/IP` is left opened and allows bi-directional data exchange with low latency (aka `FULL-DUPLEX`) \n\n5 - It will stay open until one of the party drops off\n\n# Usage\n\n- `node .`.\n\n- `yarn start`.\n\n- `open` 2 tabs.\n\n- `type` in the input.\n\n- `press` send.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisvalgoi%2Fwebsocket-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisvalgoi%2Fwebsocket-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisvalgoi%2Fwebsocket-playground/lists"}