All Questions
22 questions
4
votes
2
answers
286
views
An Express route, which renders a page, and makes use of socket.io
This is the code for a basic endpoint in my express app routes folder. This firstly renders a page, and then on a continuous loop, renders information about some random "Breaking Bad" character.
The ...
5
votes
1
answer
218
views
Node websockets
I have this code I use it for two things
connect to lxd instances and emits any operation events it recieves over socket.io to the client
Bridge between client and lxd for terminals
Its pretty ...
4
votes
1
answer
162
views
Mini Tor implementation ("CLI only anonymous network")
The goal of my project is to build a mini "anonymous" network (like Tor is) (command-line only) using Node.js and frameworks (socket.io / axios / express). A ...
5
votes
1
answer
624
views
NodeJS/Express/socket.io backend
I have the backend of a socket.io script running in NodeJS for a web application. A user can login to the site and join a project collaboration (group of users linked to a project). Each project has a ...
2
votes
2
answers
5k
views
Socket.io Node.js Object Oriented Code Structure Approach
following application:
Users can join Rooms. A Gameroom inherits from Room and has a queue where Users can queue for a game. If enough people queue they get thrown into a game lobby. Lobby also ...
13
votes
1
answer
2k
views
Basic chat server and client using WebSocket
Based on Node.js in Action (Manning Publications) chapter 2 "Building a Multi-room Chat Application", I've taken the model they presented (which is all typical ES5 and jQuery) and completely ...
2
votes
0
answers
2k
views
Passing sessions from express+passport to socket.io
I'm a node beginner and I'm trying to write fewer lines of code by finding out which lines are redundant.
...
2
votes
0
answers
768
views
socket.io and garbage collection
I have developed a realtime text web app using socket.io that continuously displays text on the web page. When I run my code below with multiple clients connecting the memory usage for the V8 ...
2
votes
0
answers
466
views
Chat application built with Node
In an effort to teach myself Node.JS and truly delve into its communication capabilities, I elected to recreate a previous chatting project. It took a bit of forethought to acclimate code to the ...
2
votes
1
answer
2k
views
Updating HTML table (Userlist) with Node.js
I currently have an HTML <Table> with all the socket.io-rooms. Client-side, the table gets fetched if you visit the page. If some room gets created or deleted,...
7
votes
1
answer
92
views
Baking homemade pies has made me so many new connections
Sorry, if you were looking for fresh baked pies, I only have a web client to help you sell them.
I've recently picked up server-side JavaScript and have added it to my toolbox, and while I've had a ...
3
votes
1
answer
269
views
Realtime chat service
I am new to Node.js and Socket.io. I implemented a realtime chat service that has a chatroom feature. When the actual product is launched, there will be at least 200 concurrent users with 50 groups of ...
-3
votes
1
answer
2k
views
Multiplayer Tic Tac Toe with Socket.io [closed]
I am trying to learn Socket.io and develop a multiplayer tic tac toe game. Right now, I have developed a game that plays well when hosted locally, but I cannot seem to transmit game moves between the ...
6
votes
1
answer
3k
views
Creating chat commands properly with Socket.IO
I am developing a chat program (mountreus-chat and GitHub) in Node.js using Socket.io and my code looks awful. I'm starting to use commands and now it's even worse.
Here's a code snippet (you can ...
4
votes
1
answer
769
views
Socket namespace for a chat module
I finally managed to work with socket.io namespace stuff which I'm using for building a chat module. Here, employees of multiple organizations can join and vhat with other employees of the respective ...