https://github.com/linyows/websocket-on-nextjs
This is example for websocket on next.js
https://github.com/linyows/websocket-on-nextjs
Last synced: 20 days ago
JSON representation
This is example for websocket on next.js
- Host: GitHub
- URL: https://github.com/linyows/websocket-on-nextjs
- Owner: linyows
- Created: 2022-05-15T05:44:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-15T06:21:41.000Z (almost 3 years ago)
- Last Synced: 2025-04-15T00:06:39.936Z (20 days ago)
- Language: TypeScript
- Size: 1.04 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
WebSocket on Next.js
==This is example for WebSocket on Next.js.

Log
--Made from this blog post: https://blog.logrocket.com/implementing-websocket-communication-next-js/
```sh
$ yarn create next-app -e https://github.com/jpedroschmitz/typescript-nextjs-starter
$ yarn add socket.io socket.io-client
```res.socket.server:
- [next.NextApiResponse](https://github.com/vercel/next.js/blob/bd3dfe1f4b589222187ded1077b6248affc0cf07/packages/next/shared/lib/utils.ts#L229-L265)
- [http.ServerResponse](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/http.d.ts#L464-L568)
- [http.OutgoingMessage](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/http.d.ts#L326-L458)
- [net.Socket](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/net.d.ts#L77-L377)