Most voted "websocket" questions
Websockets is an API and protocol for bi-directional full-duplex communication over TCP sockets, commonly used with HTML5 and available in recent versions of most browsers.
Learn more…134 questions
Sort by count of
-
29
votes2
answers10012
viewsWhat are Network Sockets and Websockets?
I am studying real-time Node.js programming and I have arisen some doubts regarding network sockets. I found nothing explained in detail, so I decided to open the question. What is a network socket…
-
28
votes2
answers1891
viewsHow to design a basic socket client application
First of all I apologise for the long text, and for the various points raised. I thought it best to cast everyone on a question just because they are interrelated and because I think anyone with…
-
18
votes1
answer897
viewsStreaming type 'livestreaming' with javascript
I’m developing a project of Livestreaming(Live video streaming) and would like to know if it is possible to make this broadcast using websockets, javascript and html5 video capture where would have…
-
16
votes2
answers1907
viewsHow to work with websockets
I’m trying to use Websockets in PHP and Javascript and I’m confused, it uses the protocol Ws:// and wss:// and the server (hostgator) does not have these protocols enabled (I think!) and I can’t get…
-
14
votes1
answer2315
viewsReal time with PHP
I am developing a system and soon I will have to start the real-time interaction part (for notifications and chat). I am using jQuery, PHP and MySQL so far and I intend to continue with these…
-
13
votes1
answer4028
viewsWhat does Handshake mean?
While studying about Websocket, I read the following sentence: Its only relation to HTTP is that its Handshake is interpreted by HTTP servers as a request for upgrade. In this context, what…
-
12
votes1
answer295
viewsCan CORS be configured for Websocket?
I have an application that needs to communicate via Websocket with two servers each on their own independent domain. It is possible to configure CORS to allow this double and simultaneous…
-
11
votes4
answers3455
viewsIs it possible to communicate Client-Server in real time via HTTP?
Using TCP sockets I can put a server app on Listening and have clients connect and wait for requests both on the server and on the client, with the possibility of the server sending information to…
-
10
votes4
answers5293
viewsHow to check if the user is online?
I am developing a project in PHP and using Mysql as a database. I only have one question about how to chat: How to know which users are online at that exact moment?
-
10
votes1
answer248
viewsHow to check if the message has been delivered, websocket php
How can I check if a message that is sent by the WEBSOCKETS Server has been delivered to the end point? I use this class:…
-
10
votes1
answer10998
viewsHow websocket works in php
I have this doubt, for example, I have a server written in PHP. When a user A connects to this server the server performs an action that takes 4 seconds for example, if before that deadline a new…
-
9
votes2
answers2252
viewsHow to check real-time database change with php websocket?
I want to update a div only when there is change in a certain field in the database, I’m currently using Polling, but I want to switch to websocket for performance reasons, but I only found examples…
-
8
votes3
answers637
viewsDeploying queues for Websocket
I’m developing a server WebSocket which will control multi client connections, will basically function as a chat, will be a kind of game multiplayer, after many researches and some tests I realized…
-
6
votes0
answers180
viewsSpring Websocket multi user chat with sound
I’m trying to develop a real-time chat, with the following scenario. Online clerk Every user he meets is a conversation One to one An attendant sees all users on a list that he is attending. When he…
-
5
votes2
answers772
viewsHow 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 that to be done, it is necessary for the user to enter the address of the Node js server in a…
-
5
votes2
answers579
viewsLive 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 it is how I could build? I have in mind that…
-
5
votes2
answers422
viewsWhat are the possible cases of using a persistent connection?
I’ve been reading about Signalr for the last few days and basically realized that one of its main features is to maintain a persistent server connection with possible clients accessing the server.…
-
5
votes2
answers374
viewsClick 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…
-
5
votes1
answer1284
viewsphp vs nodejs performance on websockets server
What I take for granted at the moment is that nodejs is more suitable to work with a constant pool of socket connections (websockets in this case) because being single-threaded each new connection…
-
5
votes1
answer453
viewsUse Node.js or PHP with Websockets?
Using Websockets for my project, at the end was an extensive project with thousands of lines of PHP code. As soon as I finished writing everything and "finish" I am told that running Websockets with…
-
5
votes0
answers58
viewsHow to capture binary data from a Webgl context?
I created two HTML clients that communicate through a websocket server. One of the clients draws a 3D model on a canvas using the Three.js library and then sends the Webgl context binary file from…
-
5
votes2
answers939
viewsGenerate a random profession for Online Players
I am creating a small game (Android) to play I 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,…
-
5
votes1
answer221
viewsIs it possible to use Websocket connections in Apache?
With the emergence of Websockets in the browsers, I also had the interest to make some implementations in some applications. Of course with the idea comes the initial doubts. One of the questions I…
-
5
votes1
answer51
viewsHow to wait for a user action on a Job?
The Situation Having a service queue, where whenever a user enters the queue he receives a position number in the queue, I need to request the presence of the first of the queue. If the first row…
-
4
votes1
answer358
viewsDoubt about the socket.io functioning
I have a question regarding the socket.io that I have already researched in several places and most of a rolled up or uses some obscure terms, but ends up not answering the doubt directly. The…
-
4
votes1
answer1736
viewsSend a message to the specific user in Websocket PHP
I have a live chat app with Websocket. But at the moment it sends messages to all users, would like to know how to send to a specific user. In case when I click on the user (from a list that appears…
-
4
votes0
answers377
viewsSignair - C# - Real-Time Response
I’m using C#, Asp . Net, SQL Server. I have the following question, I am creating a web and mobile application to communicate with a Webapi but I came across the problem of information and/ or data…
-
4
votes0
answers45
viewsFramework for working with websockets in java
I need to present some frameworks in java that use JSR356 but I can’t find current information of which is most used and why.
-
4
votes3
answers973
viewsWebsocket - c# . NET
I found almost nothing about Websockets + . NET on google, I would like to know how this server is made using the . NET in the future the idea is to create an application and hardware (Arduino) that…
-
4
votes2
answers1543
viewsWhat is the purpose and how to use Broadcasting in Laravel?
The version 5.3 of Laravel has some news, as the Broadcasting, for example. I read the documentation, but I could not understand very well on the subject. I saw that it has some relation (whether…
-
3
votes1
answer177
viewsBroadcast via an Express route
I have an endpoint in a Node application that when called should trigger a broadcast for the connected users in the Node application. That is, as soon as the user entered the system he would connect…
-
3
votes2
answers122
viewsServer side timer, huh?
I am making a game of questions in PHP, the user will have 15 seconds to answer each question, how to prevent the user to change the timer via inspect element and add seconds? Just adding details,…
-
3
votes0
answers493
viewsWebsocket Html5 and Php?
interest of knowledge has arisen here to make applications in real time. I saw here several articles but this giving "pal" in the url that step in js This is how I’m passing: var socket = new…
-
3
votes1
answer195
viewsWhat is WAMP (Web Application Messaging Protocol)?
I’ve been studying a little bit about Websockets and while researching how to do channel structure or push, I came across the term WAMP. It seems to me, WAMP is a protocol or subprotocolo of a…
-
3
votes1
answer203
viewsIs there a data limit that can be passed in Websocket.send?
I built a server to implement the Websocket HTML5. In this implementation, I always send and receive data in the format JSON. But I have the following question: There is a limit size to be passed in…
-
3
votes1
answer125
viewsSocket Javascript does not connect (Stomp + Rabbitmq)
I am trying to establish a communication between Rabbitmq and Javascript, to recover the log information that is sent to a Rabbitmq topic, but without success. In the console is displayed the…
-
3
votes1
answer99
viewsCoding Problem Between Javascript Client and Python Server
I have a server socket in Python, follow the code: from socket import * host = '127.0.0.1' port = 6060 try: server = socket(AF_INET, SOCK_STREAM) server.bind((host, port)) server.listen(5)…
-
2
votes1
answer59
viewsHow to check on the console for open websockets connections?
I was analyzing how Stackoverflow checks for updates on the question list, but nothing appears on the console (Firebug), so I’m guessing they’re using websockets. Then I came up with a question: is…
-
2
votes1
answer210
viewswebsockets and php
Well, I have two direct doubts, which are: is limited the number of connections to the server? what limit does it? is it possible to have infinite connections? How could I send a message to a…
-
2
votes1
answer184
viewsGet $_SERVER user information via socket
Look, I’m wearing it new WebSocket to develop my applications and need somehow to have access to these variables of the connection I’m receiving through the sockets over PHP, is there way to it or…
-
2
votes1
answer996
viewsHow to send message only to a user with Websocket
I have a live chat app with Websocket, but at the moment it sends messages to the entire group, I would like to know how to send to a selected user, in case when I click the user (from a list that…
-
2
votes1
answer62
viewsIn Crystal it is possible to connect to a Websocket
I’m starting at the Crystal and I want to try to create a connection of a Websocket server with Crystal as client, it is possible to do so, there is some bookstore for this or the Crystal language…
-
2
votes1
answer364
viewsHow to know when the computer will shut down/restart/hibernate/suspend in Delphi?
I have a system that works with websocket in Delphi with mORMot, when I restart the PC or when I disconnect it runs Onclose and Ondestroy and through that I can remove the callback of the logged in…
-
2
votes0
answers155
viewsWeb sockets how to make a connection by selecting an IP
I’m doing a project that involves connection to a ESP8266 through websockets, but as the ip of ESP no and static need to make manual connection with the IP. But in the code below when I put the…
-
2
votes0
answers163
viewsSocket + SSL does not work PHP
Good morning, I have a system that uses a chat created by me and your communication by socket, all in php. The point is, I asked hostgator install the SSL in the domain, it has been installed and…
-
2
votes0
answers215
viewsIs there any specification for authentication on Websocket servers?
I was wondering what an authentication process would look like on a Websocket server. I intend to use the Javascript API for Websocket. But I would like to have a more restricted and controlled…
-
2
votes1
answer46
viewsWebsocket giving error in creation
I’m having trouble, while trying to run the websocket, it returns me the following error in the image the code I’m using is this: <?php $ip = 'localhost'; $porta = 8080;…
-
2
votes1
answer162
viewsI need to connect to an external socket server via URL
First of all, I know there are thousands of tutorials teaching sockets internet throughout. However, I did not find anything specifically for my difficulty, so I resorted to ONLY. I need to create a…
-
2
votes1
answer83
viewsHow do I return a character from a string in the Python function with Websockets and json library?
I’m new to Python and I have a question I’ve been trying to figure out for a long time. I’m creating a tick analysis program from an investment site, and I want to extract the value of a certain…
-
1
votes1
answer276
viewsGoing up Node.js project (with websocket) to Heroku
This is the project: http://googlecreativelab.github.io/coder-projects/projects/blinky_lights/ I followed all these steps: Heroku login ssh-keygen -t rsa heroku keys:add Procfile (web: tilestream…