{"id":15356925,"url":"https://github.com/linyows/websocket-on-nextjs","last_synced_at":"2025-04-15T00:06:55.053Z","repository":{"id":140523913,"uuid":"492398428","full_name":"linyows/websocket-on-nextjs","owner":"linyows","description":"This is example for websocket on next.js","archived":false,"fork":false,"pushed_at":"2022-05-15T06:21:41.000Z","size":1091,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T00:06:39.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/linyows.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}},"created_at":"2022-05-15T05:44:26.000Z","updated_at":"2025-03-17T05:19:06.000Z","dependencies_parsed_at":"2024-02-01T20:07:01.655Z","dependency_job_id":"4e8bfcf5-afff-45d0-8d13-7f8d502959b2","html_url":"https://github.com/linyows/websocket-on-nextjs","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/linyows%2Fwebsocket-on-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fwebsocket-on-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fwebsocket-on-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fwebsocket-on-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linyows","download_url":"https://codeload.github.com/linyows/websocket-on-nextjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981267,"owners_count":21193147,"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-01T12:30:51.278Z","updated_at":"2025-04-15T00:06:55.027Z","avatar_url":"https://github.com/linyows.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"WebSocket on Next.js\n==\n\nThis is example for WebSocket on Next.js.\n\n![screenshort](misc/screenshot.gif)\n\nLog\n--\n\nMade from this blog post: https://blog.logrocket.com/implementing-websocket-communication-next-js/\n\n```sh\n$ yarn create next-app -e https://github.com/jpedroschmitz/typescript-nextjs-starter\n$ yarn add socket.io socket.io-client\n```\n\nres.socket.server:\n\n- [next.NextApiResponse](https://github.com/vercel/next.js/blob/bd3dfe1f4b589222187ded1077b6248affc0cf07/packages/next/shared/lib/utils.ts#L229-L265)\n  - [http.ServerResponse](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/http.d.ts#L464-L568)\n    - [http.OutgoingMessage](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/http.d.ts#L326-L458)\n      - [net.Socket](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/net.d.ts#L77-L377)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinyows%2Fwebsocket-on-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinyows%2Fwebsocket-on-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinyows%2Fwebsocket-on-nextjs/lists"}