Converted minimal Socket.io chat app to React with Socket.io React doc and styled with Tailwind
- Run
npm installin bothbackendandfrontendfolders - Run
npm run devin bothbackendandfrontendfolders - Open
http://localhost:5173in two tabs, enter a name and message to send via WebSocket
websockets-demo.mp4
backend
└── server.js
frontend
└── src
├── components
│ ├── ChatForm.tsx
│ ├── ConnectionManager.tsx
│ ├── ConnectionState.tsx
│ └── Messages.tsx
├── App.tsx
└── socket.ts