Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers.
2
votes
0answers
78 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
0answers
78 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, ...
2
votes
0answers
64 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 ...
0
votes
0answers
42 views
Settimeout socketio client or server?
I have a game (made with angular and socketio) in which a user selects a card, the card is highlighted for all the users to see (some css) and after 4-5 seconds a new round begins.
Currently I have ...
0
votes
0answers
12 views
Filter for user then grab object out of array
I have an Angular + socket.io app that sends a message to a specific user when a button is clicked. So I have a repeater of user in users then a ng-...
2
votes
0answers
66 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
1answer
189 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,...
6
votes
1answer
63 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 ...
1
vote
0answers
664 views
Node.js/Socket.io chat application
I would like to know how I can improve this chat application of mine. This has been my side-project for a while.
I have made it to support on desktops, tablets and smartphones.
GitHub link
Online ...
1
vote
0answers
70 views
Pulling data quickly from mongodb with node.js
I am currently struggling with a request I am making to my server that is taking more than 4 seconds! I cut out a lot of the cruft to hopefully make it easier to read. Excuse my horrible variable ...
1
vote
0answers
138 views
File-sharing with sockets
I'm trying to get some confidence with RXJS and FRP. This code handles file sharing via socket.io. I need some advice about general RXJS style and reactive programming.
...
5
votes
1answer
344 views
Socket.io wrapper for an app with ReactJS components
I am upgrading a traditional jQuery based app by converting a few parts of it into ReactJs components and use Socket.io for the data transfer medium.
There are a few React components spread across ...
3
votes
1answer
183 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
1answer
1k 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
1answer
1k 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 ...
2
votes
1answer
146 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 ...
4
votes
1answer
223 views
Passing API data chunk per chunk to its socket clients every M seconds
Let's say that I want to query some API which will respond with array of random numbers:
[4, ..., 17, ..., 25]
To keep things simple enough, let's say that array has always 10 elements. For ...
2
votes
1answer
549 views
Angular callback scope.apply
Usually the socket.io's on method is like this:
socket.on('/msg', function(data){});
But in Angular that callback has to be ...
3
votes
1answer
153 views
Self-balancing robot
I am building a 3D printed self-balancing robot, and use the attached server script to control it. I coded using node.io, express and socket.io.
The system is working, but I would appreciate some ...
8
votes
1answer
438 views
Proper prototypal programming with Node.JS
Practicing Prototypal Code
I'm focusing on practicing a very prototypal structure with my code (non library oriented) to begin learning to reuse large portions of my application infrastructures where ...
4
votes
1answer
223 views
Socket.IO handshake module
For the server of which this is part, it makes a request to one of our web servers to validate whether the PHP Session ID is actually valid. The location ...
2
votes
1answer
495 views
Node.js chat service
I've built a simple chat server/client on Node.js and socket.io that I would like reviewed. My main concern is making the chat.js (client) running as cleanly as possible (OO) and streamlining data ...
4
votes
1answer
964 views
Node.js chat client
This is a chat using Node.js, socket.io and MongoDB for storage.
I'd appreciate any feedback on what can be improved. I understand that this allows for non-unique usernames to be used, and it's ...
3
votes
1answer
1k views
Delivering realtime data from backend socket
I've got server running to make serial data available on a TCP/IP port. My goal is to collect data coming from a realtime device connected to the serial port and deliver it to web clients connected to ...