
npx create-next-app chat-app Setup websocket npm install socket.io create > socket.io file in > pages/api/ // socket.js import { Server } from 'Socket.IO' const SocketHandler = (req, res) => { if (res.socket.server.io) { console.log('Socket ...
Code Repeat Repeat
I am Mandeep Singh, a full-stack developer. I created this Blog to bestow my coding experience and love to write on JavaScript, Next.js, Laravel and little bit Unity Game development.
Markdown supported · ⌘↵ to post
Emeka Elo-Chukwuma
Well, this feels more like a websocket usecase of real-time collaboration. The input field being a wide textarea or some WYSIWYG. Nice 👍