Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
For example, at this website https://www.horsepaste.com/ (a Codenames clone), you can enter a custom "gameroom" url and join other people's games. Are there any resources to help me with this kind of stuff?
Now you have the rooms, but the rooms will not automatically update if someone joins or leaves. You should something like socket.io for this, it's fairly simple. You make the server (socket.io) listen for request. You make the requests from the front end and the server processes the request. When you processed all the data, you can return something. Also you can let your browser listen for events from the server. For example if someone joins, your browser 'hears' the event and so you can update you room without reloading the page. You just send the user's data in the request, when you receive this data, you just add it to the room (see second image in imgur).