Working Socket.IO implementation

With the help of [this](https://blog.logrocket.com/implementing-websocket-communication-next-js/) blog post.
But ts types had to be adapted. Thanks to [this](https://stackoverflow.com/questions/74023393/working-with-typescript-next-js-and-socket-io) helpful answer.
This commit is contained in:
aronmal 2023-01-27 22:14:24 +01:00
parent 4e3cb9d2c1
commit 180ca06f7b
Signed by: aronmal
GPG key ID: 816B7707426FC612
5 changed files with 307 additions and 0 deletions

View file

@ -27,6 +27,7 @@
"next": "13.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"socket.io": "^4.5.4",
"socket.io-client": "^4.5.4",
"typescript": "4.9.4"
},