Questions tagged [socket.io]
Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers.
32 questions
1
vote
0
answers
70
views
A TypeScript library allowing to call socket.io events like pure functions
I'm creating a Typescript library (full repository here) whose goal is to be able to call socket.io events as regular functions:
Server side demo:
...
4
votes
1
answer
991
views
9X9 Tic Tac Toe variant with frontend in react and backend in python flask_socketio
I (a junior back-end Java dev) decided I wanted to learn some front-end development skills; in particular, I wanted experience with React and websockets. I decided to write an app that would allow for ...
1
vote
0
answers
328
views
socket.io / jwt [closed]
I am studying socket.io and ended up making a connection using react as front end
js and how to back end node js
I was successful but I have a question as to how I made my code I don't know if it's "...
4
votes
2
answers
300
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 ...
6
votes
1
answer
238
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 ...
3
votes
1
answer
508
views
Await socket Response
I wrote this to make the "callback hell" more manageable on the part of the coder when using Socket IO, so that there wasn't really any callback hell to go with, just a simple await.
This should work ...
4
votes
1
answer
169
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
640
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 ...
13
votes
1
answer
3k
views
Real time Tic Tac Toe game in Javascript using Socket.IO
This is my first attempt at building a full project. I've recently learned using prototypical inheritance in JS. Please tell me how I can improve the quality of this code.
The game is available here:...
2
votes
0
answers
40
views
Tracking stopped players and connecting them so they can interact
This file handles the player "stopping" in space, trying to find whoever is ahead or behind (also stopped) and joining everyone into each others stopping -rooms. I'm not too sure about the whole "each ...
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
1k
views
Online Snake v0.1 with Python-flask and socketio
What I am essentially doing is writing a snake game that everybody could play on the internet, broadcast their game if they like and so on. Now it looks like this, just websocket-based snake, no user ...
2
votes
0
answers
992
views
Using Flask-SocketIO in conjunction with Flask-WTF / WTForms to provide realtime form validation feedback
I am working on a user login using Flask and the following extensions: Flask-Login, Flask-WTF, ...