redbaron76 / nextjs-socketio-chat Goto Github PK
View Code? Open in Web Editor NEWRealtime Chat App in Next.js and Socket.io
Home Page: https://codesandbox.io/s/nextjs-socketio-chat-piffv
Realtime Chat App in Next.js and Socket.io
Home Page: https://codesandbox.io/s/nextjs-socketio-chat-piffv
Hi there @redbaron76, I have no intention to be rude :)
Your example of connecting to socket.io
in Next.js
is the best one online!!
It has no async
function or promise
to address the /api/socketio
(making the code easier to manage):
nextjs-socketio-chat/src/pages/index.tsx
Lines 26 to 28 in 2272b0b
And it's the only one that includes types:
nextjs-socketio-chat/src/types/next.ts
Lines 5 to 11 in 2272b0b
Is it possible to update the dependencies to socket.io-client
and socket.io
? It's not that I need it - but I wish for it to stay relevant for a long time - to help others encountering it online.
BTW - it would be cool to also update React to version 18 (and React has a warning message inside its useEffect
in this project's CodeSandbox).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.