Questions tagged [WebSocket] (185)

1
answer

How to connect to an existing Websocket?

Is there a website that is written in React + obfurscator The website establishes a connection via websocket. Can I send requests and receive responses without knowing the variable that created this connection? Maybe he actually created using an anonymous function. Just wondering whether it is real or not? If you really, ca...
colin.Metz asked April 19th 20 at 12:36
3
answers

How websocket works on low level?

Interested in the explanation of the websocket at a low level. As far as I know, websocket is a lightweight wrapper over tcp. But it is not quite clear what is happening on the server. Below I will state my understanding/guess of how it works. I'm not an expert in unix, tcp/ip and system programming, so my presentation is l...
Olin_Lem asked April 18th 20 at 12:35
1
answer

The order of message processing?

1-Browser websocket receives messages. 2 Messages are processed. 3-After processing are added to the array. 4-the Given array with the messages being rendered to the user. The problem is that the stage of processing of each newly received message can be very different at the time. Rough example: the client accepts сообщени...
barney.Parker asked April 16th 20 at 10:58
1
answer

How to test the sockets on the backend?

Hello, is there a program for testing sockets on the backend node.js as postman to test http requests?
lorenzo asked April 16th 20 at 10:52
1
answer

Can I use websocket in Rails without users?

Good time of day. Write a clone of trello on a bunch of React + Rails. There is a need to use websockets for updates in real time. In many examples of the websocket used by the users. Ie, no registration and authorization, no users. There are only 3 models - Board, List, Card, as I understand to use the websocket just for ...
Aiyana_Effertz asked April 16th 20 at 10:45
0
answer

How to play audio stream with websocket?

trying so, at the end of the buffer there are clicks (interrupt play): var audioContext = new AudioContext(); ws.onmessage = onMessage; async function onMessage(data) { var arrayBuffer = await new Response(event.data).arrayBuffer(); let source = audioContext.createBufferSource(); source.buffer = audioContext await.decode...
berneice asked April 16th 20 at 10:44
1
answer

What is the difference XMPP from the FCM and from the Websocket?

Trying to figure out how to work the chat in Android application. Revered, but little understood. What is the difference XMPP(jabber) from FCM (Firbase CM) and a Websocket/Socket.io. Ie can't understand through which layers should take place, such as a message from the application client to the other client. What need of t...
trudie asked April 16th 20 at 10:29
2
answers

How to combine two servers into node.js?

var ws = require("nodejs-websocket") var http = require('http'); var url = require('url'); http.createServer(function (req, res) { Res. writeHead(200, {'Content-Type': 'text/html'}); let q = url.parse(req.url, true).query; let odin = q.t; let dwa = q.d let tri = q.o; send("{'odin':'"+odin+""dwa':'"+dwa"'}");...
Justus70 asked April 16th 20 at 10:15
2
answers

Will WebSocket to overcome the asymmetry of availability of hosts in a two-way connection?

Task: to organize such a dialogue: 1) the client initiates the connection with the server; 2) the server sends notification to the client; 3) the customer will tell you to stop. Problem: the client sits for NAT th, and he's got ports for incoming connections can be closed, but the server in this regard is always open and c...
Carolanne28 asked April 9th 20 at 10:53
0
answer

How to send message over websocket at the vue?

Did the chat websocket, laravel - vuejs. Got the following problem: when sending a message through axios.post is quite a long delay (about a second) in this case, the response message through the websocket takes a fraction of a second and happens almost instantly, how can I fix it? Is there a way of sending messages as quic...
Delpha asked April 9th 20 at 10:50