Simple Lobby Management using ExpressJS and SocketIO #5249
Unanswered
creeperkatze
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Folks!
First of all, I wanted to clarify this is a beginner-ish question. C# Dev here with very little JavaScript knowledge.
I am currently experimenting with ExpressJS, specifically using SocketIO to create a simple lobby system for now. The frontend I'm using is nuxt. My implementation has a few problems. Joining basically doesn't work, the lobby is always "full" and all players get addressed to a lobby they shouldn't get.
I am not asking anyone to "just write some code for me", but If you got some spare time and want to help me, im more than grateful for any tips / fixes / improvements! :)
Backend (ExpressJS + SocketIO):
index.js
server/controllers/socketController.js
server/models/lobby.js
Frontend socket example:
Beta Was this translation helpful? Give feedback.
All reactions