Questions tagged [websocket]
WebSocket is an API built on top of TCP sockets and a protocol for bi-directional, full-duplex communication between client and server without HTTP overhead.
28,096
questions
0
votes
0
answers
8
views
Error while trying to import stompjs in a React application that is using webpack
I am building a modular federation React app that is subscribing to one of my topics from my backend using STOMP (SockJS) but whenever I try to import stompjs in one of my React components, it gives ...
0
votes
0
answers
14
views
Laravel Echo Server , Socket IO , Nginx problem
we are trying to use laravel echo server , socket io , redis on nginx webserver for a page that we need to have real time informations on it , our laravel website and realtime is working on local ...
0
votes
1
answer
24
views
Receive real-time updates like WebSocket but via Async/Await or Combine
I am trying to achieve an update for a simple counter using a network request, but want to get real time updates. I can only think of using WebSocket.
Can I get a similar interaction using Structured ...
0
votes
0
answers
5
views
WebSocket connection Failed when using Helia IPFS in react app
I have been trying to use helia in my react.js application but keep getting the following error in the console:
WebSocket connection to ‘wss://ny5.bootstrap.libp2p.io/p2p/...
0
votes
0
answers
5
views
the websocket auto disconnect with 1005 and 1006 code
Now I found some websocket could not enstablished the connection(some websocket works fine, some websocket auto disconnect), the server capture the error code 1005 without other information. This is ...
0
votes
0
answers
9
views
websocket, react and node js, does not send messages
I'm trying to write a chat in React, and a node js express server side.
I found code in node js like this:
const express = require('express');
const expressWs = require('express-ws');
const port = ...
0
votes
0
answers
24
views
How can I wait for a websocket message in python
I'm trying to replicate this js test in python
test.js
it.only('should send and receive PSS message', async function () {
this.timeout(PSS_TIMEOUT)
return new Promise<void>((resolve, ...
1
vote
1
answer
22
views
How to Use the WSS Protocol on a Golang Web App hosted on Azure?
Background:
I set up a web application using the Azure App Service. The server is written in Golang, and it serves a React client. The client makes a WebSocket connection to the server on load.
My ...
-2
votes
0
answers
50
views
Which architecture is suitable for interactive Quiz flashcard app? [closed]
I am going to build a specific app with two modes:
The user can train himself- to call an auto-generated set of English words and try to translate them- one by one correctly.
Stata will be collected.
...
0
votes
0
answers
12
views
How to Subscribe to Huobi private order notifications?
How to make it right. I want to receive order notifciation
import websocket
import json
from urllib.parse import urljoin, urlencode
import gzip
import hmac
import hashlib
from datetime import ...
0
votes
0
answers
18
views
How to share websocket context in quart
i have quart app with with websocket method.
charge_points = {}
@app.websocket("/ws/<charge_point_id>")
async def on_connect(charge_point_id: str):
logging.info("...
0
votes
0
answers
13
views
Masking real URL serving images with best possible performance in MVC
There are a couple of problems I'm trying to solve with this question, but the main one is the company I work for is currently using a third party service to host our images because it allows us us to ...
-1
votes
0
answers
18
views
Multi geolocation object that are moving on the map
I have an json object with multi user. Every user has position data like this:
{
user1:{
latitude:1234,
longitude:5678,
speed:5,
timestamp:75433322578
},
user2:{
latitude:1234,
longitude:5678,
Speed:6,...
-1
votes
0
answers
35
views
Send message from server to client use Websocket. Java
I hope for your help, I have already looked through everything but have not found an answer. The task is this: I need to send information from my Java application to the client (frontend). The essence ...
0
votes
0
answers
26
views
Code 1011 in django website Websockets connection
I have been working on a django chatting application (https://aniconnect.org) which uses daphne (django-channels) for the websocket functionality which allows users
to chat with each other. Every time ...
0
votes
0
answers
4
views
How can I make one function interrupt the execution of another function? I'm using Socket.IO with Node.js
I'm creating a game with multiple rooms, each having a handler. The rooms distribute roles, and each player is supposed to play for 50 seconds. I want to add a function that listens for player ...
0
votes
0
answers
16
views
Pusher 2 different connections two different channels at the same time
I have a Flutter app and doing sone messaging staffs.I'm using two different channels for that.First one is presence channel.I'm using this one to keep track online-offline status of all users.And I ...
0
votes
0
answers
10
views
Django websocket code is skipped when running server via nginx and asgi
In our code, AsyncJsonWebsocketConsumer.send_json() works fine when we are running the server via Django runserver but gets skipped when it is ran via nginx and asgi.
This is the calling code and it ...
1
vote
1
answer
16
views
How to play different audio fragments in js continuously like a stream?
I'm trying to create simple audio streamer. On js client i'm sending 1 second audio fragments via websocket. Python server returns this audio and it's played on client. The problem is the presence of ...
0
votes
0
answers
13
views
Socket.io websocket not working on Google Cloud Virtual Machine
I created a game of rock paper scissors with a 5-minute timer. The timer is handled via socket.io. We tried setting up Socket.io using WebSocket.
Backend:
const io = require('socket.io')(server, {
...
0
votes
0
answers
10
views
List of WebsocketException.ErrorCodes in .net
Where can i find a list of WebsocketException.ErrorCodes in .net?
From the namespace System.Net.WebSockets.WebSocketException
0
votes
0
answers
52
views
.Net 6 SignalR - data transfer rate
I try so send 1 gigabyte of data from an ASP.NET Core Web API server (.NET 6 runtime) with SignalR to a client.
The application flow is as follows: Client calls controller endpoint to start a long ...
0
votes
0
answers
16
views
How to capture a dynamic port before a websocket connection closes from "connect ECONNREFUSED 127.0.0.1:3003"
I'm new to the concept of websocket connections and unsure how to approach this problem where the connection closes with an e.reason connect ECONNREFUSED 127.0.0.1:3003. I can only assume there is a ...
-2
votes
0
answers
24
views
How to create websocket for route road or map in google cloud [closed]
I am confused to create a websocket for road routes on the server side so that it can always be updated on google maps and to deploy it on the google cloud.
0
votes
0
answers
33
views
TCP server sends retransmission of old acknowledged data [closed]
--> Update, issue solved. Client produced wrong checksums at some point.
I have a question regarding a TCP flow I'm dealing with.
In short, there is a WebSocket connection on top of TLS 1.2.
It ...
0
votes
0
answers
17
views
Laravel Websockets + Lets Encrypt SSL + Nginx
Hello I am trying to configure my production server to use laravel web sockets over SSL. I thought I have it properly configured when I am able to connect to Laravel Websocket's dashboard via my ...
0
votes
0
answers
32
views
Create connection to a WebSocket API created on AWS using the webcomponents library in zephyr
I have created a WebSocket API on AWS which i can connect to using the webcomponents library from python, and also using the WebSocket tester on PieSocket.
However, when I am trying to connect from a ...
1
vote
1
answer
33
views
Azure SignalR missing custom headers
I am using Azure SignalR for my .NET project as Hub.
On the other side, I am using a React app as a client. In the script, I add some custom headers to the HubConnectionBuilder class. When the ...
0
votes
1
answer
21
views
NestJS WebSocket connection issue: unable to establish connection or receive data
I'm currently working on a NestJS application where I've implemented WebSocket functionality using the @nestjs/websockets | socket.io | @nestjs/platform-socket.io modules.
However, I'm encountering ...
0
votes
1
answer
24
views
Running a background task with python asyncio
I am building a websocket server in which I want to have a background task that receives messages from SQS and sends them to client while not blocking rest of the events.
But I keep getting this error,...
0
votes
1
answer
36
views
How to use websockets.broadcast() in while True loop
In this function, I want to get video frames and predict them, then broadcast predicted result to all subscribers, but when I run this function, clients can't receive result. Because code don't return ...
0
votes
0
answers
22
views
Socket IO - Private message implementation methods
I am using Socket IO in my project, which is a social media site such as Instagram. Users can select a user and create a real time conversation with that user.
I am wanting to implement private ...
0
votes
0
answers
9
views
How to add an input to a group in the obs web socket
Obs WebSocket docs define that groups in OBS are actually scenes, but renamed and modified. In obs-web sockets, we treat them as scenes where we can.
import obsws_python as obs
cl = obs.ReqClient(...
0
votes
0
answers
10
views
Somehow the content cannot be display while using Nginx
My Nginx conf file for 2 web services is as follows:
server {
listen 80;
listen 1000;
server_name 192.168.1.150;
return 301 https://for_stackoverflow.net$request_uri;
}
...
0
votes
1
answer
40
views
Streaming h.264 from UDP via Websocket and to the browser
I am currently trying to stream some video in h264 format from udp to a video tag in the browser.
Currently nothing is showing on screen which means there is either an issue with the code or the video ...
0
votes
0
answers
22
views
Gevent Websockets and normal http routes in the same Flask app
I have both http routes and gevent websocket routes in my Flask app, for example:
@app.route('/get_all_rooms')
def get_all_rooms_dict():
if all_rooms_dict:
return jsonify(all_rooms_dict)
...
0
votes
0
answers
14
views
How to use @stomp/stompjs in vue2
I tried to solve it on my own, but it wasn't easy.
I'm working on a vue2 project.
I installed the @stomp/stompjs library to communicate with an external websocket API.
And this WebSocket API requires ...
0
votes
2
answers
59
views
FastAPI and Websocket to post python Dataframe and read
I am quite new to FastAPI and Websocket. It seems possible to post some Dataframe output to localhost and use it for another process. Currently, I am doing this using xlwings and this is slightly ...
0
votes
0
answers
8
views
How do I use web socket inside a graphql mutation using socket.io and expressGraphQL?
`I have been trying to emit an event to a specific user using socket.io when a specific mutation is called
I tried to use this on my main server file:
const graphqlMiddleware = expressGraphQL((req, ...
0
votes
0
answers
10
views
Creating a fanout service using Websocket connection
im trying to build an application that serves real time data to the end users. i was thinking of using a websocket connection since the data is alot (10 events/sec). the trouble is this, the data is ...
1
vote
0
answers
30
views
Websocket: C-Server --> Browser invalid frame header
Dear stackoverflow forum,
I have a problem with the communication between my C-server and the client (javascript). I am using a Rasperry Pi 4 as server and Chrome as browser (I have also tested my ...
0
votes
0
answers
19
views
Rust Based Websocket Server blocks after n connections
first of all i'm fairly new to Rust. I'm implementing a WebSocket Server which maybe someday will run in our Kubernetes cluster (yes i'm aware of the statefull issue with websockets in such an ...
0
votes
0
answers
14
views
When forwarding WebSocket requests through a load balancer, does the load balancer incur a significant overhead?
I am currently developing a chat server and have encountered a question while deploying it in a cloud environment. I've designed the architecture based on a 3-tier structure. If a user sends a request ...
-1
votes
0
answers
12
views
WebSocket connection failed using socket io [closed]
I have bought a shared host and went to move the files and setup the socket.io but it gives me this error , I have everything working properly in my localhost (https://i.stack.imgur.com/1jk94.png)
I ...
0
votes
0
answers
12
views
Anomaly with System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10060)
Im making a software on C# with two-sided socket connection. Client opens a socket on this PC and starts listening to commands from server, when he receives and processes a command, it returns a ...
0
votes
0
answers
7
views
Subscribe springboot web-socket with Postman
I have created a springboot websocket with a topic
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void ...
0
votes
0
answers
34
views
NSURLSessionWebSocketDelegate delegates not being called iOS Objective c
I'm facing an issue with NSURLSessionWebSocketDelegate in my iOS application. I've set up the websocket connection using NSURLSessionWebSocket and implemented the necessary delegate methods, but it ...
-1
votes
0
answers
9
views
How to do Websocket integration with Spring Security
[2m2023-11-27T12:14:49.099+05:30[0;39m [32m INFO[0;39m [35m29604[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mc.mantratec.ekyc.EKycServiceApplication [0;39m [2m:[0;39m Starting ...
-1
votes
1
answer
38
views
How to remove socket.io default parameters
I want to connect the web socket API of an external server using Vue2.
So, I installed the socket.io library.
However, when I run it, parameter values that I do not want are entered.
Request URL: ...
0
votes
1
answer
26
views
Python AttributeError: module 'websocket' has no attribute 'WebSocketApp' in Docker container
I have no issues using WebSocketApp when running from the command line, but I can't figure out the issue when I try to run as a container. Most text points to websocket-client needing to be installed ...