Questions tagged as 'websocket'

1
answer

How the websocket works in php

I have this doubt, for example, I have a server written in PHP. When a user A connects to that server, the server performs an action that takes 4 seconds for example, if before that time a new user B connects, it will have to wa...
asked by 23.12.2015 / 23:52
0
answers

Spring Websocket multi user chat with sound

I'm trying to develop a real-time chat with the following scenario. Online Attendant Each user he answers is a One to One conversation An attendant sees all the users in a list that he is answering. When he speaks, he speaks only to...
asked by 15.12.2016 / 00:24
2
answers

Generate a random profession for Online Players

I am creating a small game (Android) to play me some more friends of mine. The game is called "Cops and Thieves". At least it is necessary to have 4 players in which one of them will be the POLICE, another will be the CRIMINAL, another will be t...
asked by 23.12.2016 / 10:05
1
answer

php vs nodejs performance on websockets server

What I take for granted today is that nodejs is best suited to work with a constant pool of sockets (websockets in this case) because by being single-threaded each new connection generates an extra minimal memory consumption (a few hundred KBs),...
asked by 15.02.2016 / 00:25
2
answers

Live video playback using websocket

I would like to stream a video that is in my database (MySQL) and would like to know if it is possible to play live media content using websocket, and if that is how I could build? I have in mind that I will use html5 and JS and a back end langu...
asked by 01.08.2014 / 17:15
2
answers

What are the possible cases of using a persistent connection?

I've been reading about SignalR for the past few days and I've basically realized that one of its key features is to maintain a persistent connection of the server to the possible clients by accessing the server. Basically, it allows us to cre...
asked by 06.07.2014 / 01:18
1
answer

Use node.js or PHP with WebSockets?

Using WebSockets for my project, in the end was an extensive project with thousands of lines of code in PHP. As soon as I finished typing everything and "finished" they told me that running WebSockets with PHP is unfeasible for large-scale us...
asked by 06.10.2015 / 04:47
2
answers

How to search for a device on an internal network using Javascript and / or Node js

I'm creating an application that uses Websocket to connect two devices to an internal network, but for this to be done, the user must enter the Node server address js into a text field so that it can be used to create a Websocket connection betw...
asked by 11.06.2014 / 05:39
2
answers

Click on Notification Desktop and go to the same window without refreshing the page

I am developing a chat with WebSocket and I have a problem, when I send a message to a friend, he receives the desktop notification (from the Browser he is) and when he clicks on the notification he goes to the conversation window of the person...
asked by 10.05.2015 / 17:56
1
answer

Doubts about the operation of the socket.io

I have a doubt regarding the socket.io that I have researched in several places and most of the one rolled or uses obscure terms, but ends up not answering the doubt directly. The question is whether it works in the following way: at the time...
asked by 19.11.2015 / 02:49