Skip to main content

All 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 ...
Dan Savage's user avatar
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 ...
Dan's user avatar
  • 520
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 ...
spyrox's user avatar
  • 41
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 ...
LeDoc's user avatar
  • 151
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 ...
IDontEven's user avatar
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 ...
Phrancis's user avatar
  • 20.4k
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. ...
Omorhefere imoloame's user avatar
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 ...
ghort's user avatar
  • 21
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 ...
Legato's user avatar
  • 9,839
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,...
user avatar
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 ...
Alex L's user avatar
  • 5,757
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 ...
Ken Liao's user avatar
-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 ...
user3720958's user avatar
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 ...
Gabriel Tomitsuka's user avatar
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 ...
Suresh's user avatar
  • 143

15 30 50 per page