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
-
0
votes0
answers119
viewsSending data to a UDP client
I would like to know if there is any way I can send data to a udp client in nodejs through a browser. I have a form with any 2 fields, I need to take this data placed in the form and send it to the…
-
0
votes0
answers584
viewsIs it possible to build Altime applications using "normal" hosting servers?
Well, I’m creating a mini-forum, and I’ve come to the conclusion that the best way to build this forum is to use real time applications. However, for now, I host my site on a free server (like…
-
0
votes1
answer42
viewsIonic client (ng-socket-io) and Springboot server with Sockjs
I have an app made with Ionic 3 which uses as a Websocket client ng-socket-io and I have a Websocket server that was implemented with Sockjs at Spring Boot. From what I read, Spring Boot can’t work…
-
0
votes0
answers207
viewsSend a message to the client when there is a system change with Websocket Ratchet PHP?
Hi, I made a PHP Websocket with Ratchet. The server.php is as follows: require "../vendor/autoload.php"; use Ratchet\Server\IoServer; use Ratchet\Http\HttpServer; use Ratchet\WebSocket\WsServer; use…
-
0
votes0
answers23
viewsWhy did I get the "Chat socket closed unexpectedly" exception?
I received the exception "Chat socket closed unexpectedly" in this javascript script: const chatSocket = new WebSocket( 'ws://' + window.location.host + '/ws/chat/' + roomName + '/' );…
-
0
votes0
answers177
viewsHow to create a socket in wildfly?
I need to create something that reads everything that comes to a specific door and handles that information. An Ubuntu server is used with Wildfly 10 running. The information trafficked is from the…
-
0
votes0
answers490
viewsReal-time form validation with php?
Assuming I have a form with some fields, and one of those fields is a CPF field. <input name="cpf" data-input-mask="cpf" data-input-field="cpf" data-input-validator="cpf" value=""…
-
0
votes1
answer336
viewsListen to messages with multiple customers(pub/sub)
If I want to be able to have multiple users and channels, do I need to have each user create a client in redis (or whatever the pub/sub used) to subscribe to the channel? And how would you get the…
-
0
votes0
answers220
viewsWebsockets with php Ratchet does not work
People are studying websockets, and when trying to follow several examples found on the internet and on the site of Ratchet itself I just can’t run the server, the terminal is like this: Follow code…
-
0
votes0
answers161
viewsChange user status when online with websockets (php Ratchet)
I’m making a chat using websockets with Ratchet, and I have a question regarding the user status. I made the page upload a list of all the contacts that the user has, and when the server receives a…
-
0
votes0
answers448
viewsError in Connection establishment: net::ERR_CONNECTION_TIMED_OUT
I am trying to apply a connection with websockets, but when running, gives the following error: Websocket Connection to 'Ws://127.0.0.1:8080/' failed: Error in Connection establishment:…
-
0
votes1
answer126
viewsConvert extracted binary from . getUserMedia() to . mp4
I am storing the user’s video and audio using . getUserMedia() in javascript and sending it to a websocket listening in C# (MVC). I leave down the path that the data makes until it reaches the…
-
0
votes2
answers958
viewsWebsocket on localhost does not establish connection
I’m testing WebSocket turning at the door 80, I’ve already disabled the SSL, but I’m not getting results... javascript var ws = new WebSocket('ws://localhost:80/socket2.php'); An example I have…
-
0
votes0
answers244
viewsRun Websocket with the hosted application
The project is a chat with php, Mysql and AJAX. I am using a Websocket with Ratchet to run in real time. It ran all right on the localhost, but when hosting the project I could no longer open the…
-
0
votes0
answers30
viewsWebsocket Server - Error in the npm server.js command
I tried to execute the command npm server.js and he turns me into that mistake: Error: System EADDRINUSE ::3000 At object. _errnoException (util.js:992:11) at _exceptionWithHostPort…
-
0
votes0
answers45
viewsI can’t connect to the server - Websockt
I am not able to connect to my Websockt server always error can anyone help me ? Server - PHP <?php $host = 'localhost'; $port = '1234'; $null = NULL; $socket = socket_create(AF_INET,…
-
0
votes1
answer62
viewsHow to use websocket in an Aws Beanstalk hosted application
I have a system running on aws Beanstalk, is a Java application with architecture Tomcat + Spring. I’m finding it difficult to make the websocket work, that locally is functional. The websocket…
-
0
votes0
answers69
viewsStart Node application on Linux boot (Raspberry)
Good afternoon to all, I have a JS application that needs to be started on Linux boot, how could I start this application? I tried with systemd, but it didn’t work. Could you give me some link or…
-
0
votes0
answers66
viewsProcess in Ode being terminated alone
I am using blinktrade’s Ode documentation to receive deposit notifications on Bitcoins, but the Polling process is being terminated by itself thus disrupting the functioning of my system, how can I…
-
0
votes1
answer30
viewsWebsockets on windows server
All right, guys, I have already given a good read in several web tutorials related to WebSockets, I thought it was very cool and wanted to do some chat tests for learning. The problem is that in all…
-
0
votes1
answer1023
viewsReact Hooks + Socket.io
I’m using the React Hooks for a simple application, a clone of the Instragam feed. To request each post in the api, I’m using this logic: function Feed() { const [posts, setPost] = useState([]);…
-
0
votes1
answer85
viewsIs it possible to use python’s LIB socket to make communications as a websocket?
Hello, sorry if there is any error, I am creating an MMORPG with the engine Construct 2 and it only has a plug-in websockets, however I tried to use the lib websockets from Python, but I don’t think…
-
0
votes0
answers48
viewsSocket.io in React.js. When a socket is sent, can I retrieve the sent object through the socket id?
I am using socket.io on my system so that every time a user registers appear in real time on my screen. For this I am saving the socket in the mongoDB database, but it saves not only the connected…
-
0
votes0
answers28
viewsWebsocket Javascript - multiple simultaneous connections
Personal talk, I have a function where I make a connection with a websoket, I can connect and everything, only I’m wanting to open 3 connections from 3 different users, I can open these connections…
-
0
votes1
answer33
viewssocket io error client side
When connecting to the server via socket io the browser returns the following error: http://localhost:3010/socket.io/?EIO=3&transport=polling&t=NOeqJv8 400 (Bad Request) The following code…
-
0
votes0
answers39
viewsHow can I use lib 'websocket' in React Native?
I have a chunk of code that I can connect to my websocket server using it: var WebSocketClient = require('websocket').client; var client = new WebSocketClient(); var token = "##############";…
-
0
votes0
answers17
viewsHow to send an Emit to a certain ID on the websocket
I was making a matchmaking system for my online game, and I needed to warn these two users that they connected via this system, and the most effective way I thought, was to filter these users via…
-
0
votes2
answers41
viewsHow to extract specific value from received message via Websocket?
I’m trying to extract the "balance" from a JSON. I would like to know how I can do this in a direct way, without receiving this complete message, which ends up being giant, but rather extract only…
-
-1
votes1
answer213
viewsHow to Integrate a Web Application to Call a C# Biometric Desktop Application
Good afternoon, I need to make the request by the browser (Chrome) by calling a windows form c# on the same computer, which is a biometric application, both use c#. I have both codes, I made through…
-
-1
votes1
answer23
viewsINVALID URL error when trying to create a Websocket in Nodejs
When I try to create a websocket in nodejs is giving the INVALID URL error and I can not solve. var config = require('./ext/config.js'); var ServURL = { port: config['port'], path: '/slither' };…
-
-1
votes1
answer44
viewsRelease Unsecured Connection with Websocket
Good afternoon, Today we have a PWA (https) system that needs to make the non-secure connection with an embedded application, the same with ip itself. I wonder if this communication is possible and…
-
-1
votes1
answer228
viewshow to receive data dynamically via websocket?
I’m trying to update a <div> which is receiving data from the database in a dynamic way, however, I tried to implement this way and even so remains wrong and do not know where I’m going wrong,…
-
-2
votes1
answer116
viewsSocket io cannot find the route
all right? I am instantiating the socket as IO and when using io.on('Connection', Function()) it ends up not falling inside my io.on when accessing the page, it does not return any messages and in…
javascript node.js socket websocket socket.ioasked 5 years, 2 months ago Henrique Noronha Favorette 51 -
-5
votes1
answer37
viewsRunning dependent threads in parallel in python
I’m trying to run 2 threads simultaneously in my Python program: from threading import Thread import manipulateData import stream processo1 = Thread(stream.main()) print(processo1) processo2 =…