Questions tagged [WebSocket] (185)

0
answer

Why can't I connect to a websocket?

@SpringBootApplication public class Main { public static void main(String[] args) { SpringApplication.run(Main.class, args); } } @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry con...
Alexzander.Schmidt asked April 7th 20 at 16:33
2
answers

How to design a backend real-time applications?

Good afternoon. On the server use Node.JS + Express + ws. Details: there's an app learning games. The teacher works with the student. The teacher "gives" jobs to the student, the student sees them and runs. Everything that enters or selects field select s the student sees the teacher. That is, in fact, they work on the same...
assunta.Watsica59 asked April 7th 20 at 16:17
0
answer

Failed to connect to Pusher how to fix?

Hi! No one saw the error Failed to connect to Pusher. Use laravel websockets. I suggest to download the certificate and set the path to the two php.ini files https://github.com/laravel/framework/issues/16478 prescribed in fpm and cli curl.cainfo = "/etc/php/7.3/fpm/extras/ssl/cacert.pem" error is not gone. What would you re...
tiana asked April 7th 20 at 15:51
0
answer

Why socket does not send data command ws.send?

How it works server.on('connection', (ws)=>{ ws.on('message', (data)=>{ }); ws.send('something'); }); Doesn't work, why? server.on('connection', (ws)=>{ ws.on('message', (data)=>{ ws.send('something'); }); });
nathanial.Stoltenberg asked April 7th 20 at 15:23
2
answers

How to organize a data exchange to the service receiving new data every second?

In Laravale has a built-in supporting websocket. Question. Can I use this scheme and not choke part, given the fact that the data is received over the socket every second with third-party API. Driving is such. Come the data on my client, the client writes them to the database. Larval keeps track of new entry and queues, to...
Asa asked April 7th 20 at 11:57
1
answer

As a websocket client to send data to the websocket server?

There are third-party websocket API, is my websocket client that receives the data. Question. How this data is to give my clients. That is, as with this client to transfer the data to my websocket server, which will distribute. I would be grateful, I couldn't understand the logic and sequence of actions. I eventually two we...
Ivah asked April 7th 20 at 11:55
1
answer

How to organize the transmission of data to React on received websockets?

There is a service with socket API. You can connect to that server (with no client). That is how I understand I need to get this data on the server. I use this library https://github.com/websockets/ws and raise the client to the server, receive the data: const WebSocket = require('ws'); const ws = new WebSocket ( ' wss:/...
Beau_Shanahan asked April 7th 20 at 11:51
1
answer

Is it possible to intercept the data sent from the server to the clients via websocket?

There are third party API on websocket . Do I understand correctly that this service is intended purely to demonstrate the data on the client? To use these data I can not on the side of your server (for example to write them to the database)? Do not mean hacking methods and crutches, I'm white methods? Or this API is not de...
euna_Pouros5 asked April 7th 20 at 09:47
1
answer

How to get data from third party API for sockets?

There are third party API on websocket. How do I get this data? Let's say I have an index file in which I want to display data in real time from this source. I would appreciate an explanation. Only have a General idea, I tried to work with socket.io but apparently things work differently here?
Rowan37 asked April 7th 20 at 09:42
1
answer

How to make asynchronous websocket in Python?

Maybe ask the elementary question, but how to make websocket asynchronous, that is, I now have a structure which waits for a response from a query to get the ids and then go with them on the tree(to create other query with these ids) only when all the tree passes, we move on to the next id from the first level. I would like...
marcelino asked April 7th 20 at 08:53