28,676 questions
            
            
            0
            votes
        
        
            1
            answer
        
        
            37
            views
        
    How to kick the old session from websocket
                async def connect(self):
    self.room_group_name = self.scope["url_route"]["kwargs"]["room_name"]
    pool = redis.ConnectionPool(host='localhost', port=6379, db=0)
    ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            26
            views
        
    Websocket data to video using react
                I build example to play udp stream in video
My flow is use node.js server to read udp stream and put its in websocket
And in app will read websocket and put to video tag
I use this video to put ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            8
            views
        
    fastify/websockets v11.0.2 and fastify v5.2.1 wont work
                I have a fastify project and i want to integrate a websocket.
According to the docs
import { FastifyInstance, FastifyPluginOptions } from 'fastify'
import websocket from '@fastify/websocket'
export ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            10
            views
        
    Is it possible to push WebSocket to a particular client listening on a particular UUID
                I have UI that creates a UUID for a form submission. Upon submission, i run some async processes and i need to update the UI based on the process result. IS it possible for the websocket to push to ...
            
        
       
    
            2
            votes
        
        
            0
            answers
        
        
            24
            views
        
    What is needed to enable libcurl WebSocket support, `CURLE_UNSUPPORTED_PROTOCOL`?
                I have an application using Curl for HTTP(S) and wanted to integrate with a WebSocket endpoint as well. Curl has an example for this, but even using the example code exactly I get ...
            
        
       
    
            -5
            votes
        
        
            0
            answers
        
        
            38
            views
        
    Using socket programming and FastAPI for real time project but somehow can't decide which to use and how to proceed [closed]
                I have a client and server file and I have them connected them, but somehow they always fail on something.
The task of the code is to detect face liveness, and the client's webcam captures all the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            15
            views
        
    Websockets and login – How to Run It Only After Authentication?
                I am new to WebSockets and trying to implement real-time updates for users. However, I’ve encountered an issue where the WebSocket seems to be blocking the login process. When a user attempts to log ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            48
            views
        
    How can I get the member list of log-in-ed
                I am using the django and websocket.
I have the script like this, a user can login a websocket group
Now I want to return the list of users log-in-ed and return the list to the client.
How can I make ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            22
            views
        
    Socket.io used 442GB of bandwidth on my Render server, when prior to that it did not exceed 1GB
                I host an api on render for 7$ monthly and for my app it is more than enough. At the end of February I got an invoice of 124$ for bandwidth "beyond my plan", exactly 442 GB. I did not make ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            24
            views
        
    How to get events from a website using tcl and websockets?
                I am looking for some snippet made using websocket implementation in tcl to retrieve footaball game events of the games marked as HOJE (portuguese word for TODAY) from this site.
The snippet has to ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            25
            views
        
    Tomcat Embedded Websocket
                I have problem to implement websocket with tomcat embedded .
this dependencies i used :
    <dependencies>
        <dependency>
            <groupId>org.apache.tomcat.embed</...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            20
            views
        
    Uvicorn dependency issue
                I want to create a Django webserver capable of handling HTTP requests and WebSocket requests. I am using uvicorn so that both types of requests can be handled in the same server instance. Whenever I ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            29
            views
        
    how can I close a lingering API connection?
                I have a simple Python program that queries a server via API. It uses the polygon-api-client module and returns stock market data in the form of a python list. The code is as follows:
from polygon ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            29
            views
        
    How to initiate Ping/Pong in CCXT websockets under Node
                I'm working on a CCXT based app server on Node. I want to measure websocket connection latency between Node and remote exchanges. For this purpose I'd like to initiate a ping right after websocket ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            46
            views
        
    Getting unusual delay from Binance web socket
                function forceTerminate(){
    forceTerm = setTimeout(() => {
        ws.terminate();
        isClosing = true;
    }, 30000);
}
async function buyTicker(selectedToken){
    if(!selectedToken){
   ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            12
            views
        
    Socket.io Disconnect Event Not Broadcasting to Other Users in React & Express
                I am using Socket.io with React (frontend) and Express (backend). My connection works fine—I can send and receive messages without any issues.
However, when a user disconnects, I am broadcasting an ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            23
            views
        
    Flutter Websocket Chatroom not cleaning the history
                I will explain you the problem with simple words. When I send a message "hello" to user1, and then change the chatroom, if I send a message "Good Morning" to user2, after sending ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            65
            views
        
    okhttp websocket immediately fails after connection
                I've been tryin to get websockets working in my Android app. I am using OKhttp websockets, an apache proxy and a node server. I finally got a connection, but it connects and then within a few seconds ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            18
            views
        
    Libp2p nodes can not connect to send messages to other nodes
                import { createLibp2p } from 'libp2p';
import { tcp } from '@libp2p/tcp';
import { noise } from '@chainsafe/libp2p-noise';
import { mplex } from '@libp2p/mplex';
import { mdns } from '@libp2p/mdns';
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            34
            views
        
    Web socket connection disconnected automatically
                I'm using a Node.js server application for the backend and an Angular application for the frontend WebSocket connection.
Server Side Code
var io = require('socket.io')(app.listen(port));
 io.sockets....
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            30
            views
        
    React + Socket.io: Duplicate Connection Messages with Different Socket IDs
                I'm using Socket.io with React (frontend) and Express (backend). When a user connects, I log "User connected" along with the socket ID. However, I noticed that the message appears twice, ...
            
        
       
    
            -4
            votes
        
        
            0
            answers
        
        
            23
            views
        
    angular chat realtime didnt work between pc and mobile (backend springboot work fine) [closed]
                chat real time between two pc work fine..between pc and mobile dont work..
from pc when i click on submit the data are already inserted in database but in frontend it show nothing
the backend work ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            14
            views
        
    Exoplayer goes into buffering state while web socket doing live streaming of video
                I am trying to create a live streaming view using exoplayer in the app, which uses websocket connection for retrieving the mp4 video chunks from the locahost server. I am decoding that using it in ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            15
            views
        
    the websocket server does not connect to the node js server, which is located on render.com
                I tried to connect to the websocket server with react, but the error WebSocketActions was displayed.tsx:20 WebSocket connection to failed. There are no problems writing code on the client side, I have ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            39
            views
        
    Azure PuSub with protobuf data not working
                I am using generic WebSocket client (System.Net.WebSockets) to connect to Azure Web PubSub service and communicate between two parties.
I referred this official document. I was able to communicate ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            56
            views
        
    Cannot connect to Jetty WebSocket v11
                I am trying to implement server, as java plain application, where clients could connect to a web socket.
The goal is to connect client to a websocket via this url: ws://localhost:4550/api/myWebSocket
,...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            20
            views
        
    Show user cursor and selection in Monaco Editor with React in real time
                I have a backend with sockets and I'm trying to make several users in the room at once see another person's cursor and what it highlights
I made an event listener on the socket
socket.ts
    @...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            45
            views
        
    Connection to socket.io with R websocket package not working
                I am trying to get some data from this page, namely game names and odds and rounds:
https://www.winamax.fr/paris-sportifs/sports/1/7/4
I first tried using a GET request from the httr package, by ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            23
            views
        
    WebSocket Server in Python Not Receiving All Messages While Node.js Does
                I am running a WebSocket server behind Nginx, and I have two different implementations: one in Node.js and one in Python. The Node.js WebSocket server receives all messages correctly, but the Python ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            9
            views
        
    How can I route an event to the correct WebSocket connection in a multi-instance microservice architecture without broadcasting to all units?
                I have a microservices setup where multiple instances of a Device API Service (DAS) handle WebSocket connections from devices. For example, devices d1, d2, d3, d4, and d5 each have an active WebSocket ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            56
            views
        
    403 forbidden using websockets with spring boot
                I have spring security with JWT implemented in my application and was trying to set up the WebSocket connection. Initially I was sending the token in the headers of the WebSocket connection with the ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            138
            views
        
    TypeError: handle_connection() missing 1 required positional argument: 'path'
                I have the following code.
server.py:
import asyncio
import websockets
from websockets.exceptions import ConnectionClosedError
async def handle_connection(websocket, path):
    print("[+] Client ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            79
            views
        
    ElevenLabs Websocket server not sending response
                I'm using ElevenLabs Conversational AI API, which uses Websockets. And I'm using Unity C# on the client side.
I can receive audio just fine, but when I send my reply to it, I don't get a response.
...
            
        
       
    
            -2
            votes
        
        
            0
            answers
        
        
            26
            views
        
    Binance websocket price issue [closed]
                enter image description
I have a problem getting the price of bitcoin using binance API.
enter image description here
Please help solve this problem.
\_d40227.\_.js:13 WebSocket connection to 'wss://...
            
        
       
    
            2
            votes
        
        
            0
            answers
        
        
            23
            views
        
    How to implement a robust SignalR WebSocket connection with retry mechanism in React TypeScript?
                I'm building a React TypeScript application using SignalR for real-time communication. I need to implement a reliable WebSocket connection with automatic retry mechanism.
Here's my current ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            28
            views
        
    Twilio Real-Time Media Streaming to WebSocket Receives Only Noise Instead of Speech
                I'm setting up a Twilio Voice call with real-time media streaming to a WebSocket server for speech-to-text processing using Google Cloud Speech-to-Text. The connection is established successfully, and ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            56
            views
        
    Why is my websocket failing to connect? NextJS -> NGINX -> Scala(akka-http)
                Background:
I have a Scala (with akka-http) webserver running behind NGINX. I also have a NextJS application running behind the same NGINX.
My goal here is for the NextJS application to establish a (...
            
        
       
    
            2
            votes
        
        
            0
            answers
        
        
            29
            views
        
    boost beast secure websocket server - determine TLS version of incoming connection
                I have a secure websocket server written with Boost Beast. A significant portion of the connection code is documented here. I need to extend the code to make a runtime decision on whether the incoming ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            19
            views
        
    HAProxy WebSocket Issue Behind DMZ
                I have an HAProxy server acting as a reverse proxy for a backend server located in a DMZ. The client browser cannot directly access the backend, only HAProxy can. The application running on port 443 ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            23
            views
        
    "AxiosError: Request failed with status code 400" on Market Order Request
                I'm working on a trading bot that connects to Binance Testnet using WebSockets to get ticker updates and Axios to place market orders. However, I'm encountering the following error when trying to ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            39
            views
        
    Error while using container for front - WebSocket connection to 'ws://localhost:9060/ws' failed:
                I am writing frontend on react for spring backend server and in the last days i am fighting with the issue with websockets. When i run both parts (front/back) locally everything works just fine ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            30
            views
        
    After WebGL build a websocket client doesn't work and throws a JS exception
                When I use WebGL build to build my project, websocket client doesn't work at all.
I use WebSocketSharp library and Unity 6. I encounter a JS exception:
null function or function signature mismatch.
...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            42
            views
        
    How to Run WebSocket server.php on VPS [duplicate]
                Summary:
I'm trying to run a WebSocket server using Ratchet and ReactPHP on my VPS. However, when executing server.php, I receive the following error:
PHP Fatal error:
Uncaught RuntimeException:
      ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            28
            views
        
    SocketIO client i can see all event on the network tab event when i only listen to specific event
                For example if i listen to NOTIFICATION/USER_ID/2 i can see all the socket event on network tab, i dont want the current user to be able to see another user event because its not belong to them
how to ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            31
            views
        
    Janus serve connected to android ICE failed
                I am using janus server for video streaming service on android native
I am using websocket using using okhttp3 library
webrtc library and written codes from scratch,
video streams on some devices ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            49
            views
        
    How to correctly use icici breeze api?
                I am fresher working on a project relating to icici breeze api and I am stuck for a long time now. Any help will be much appreciated.
from datetime import datetime
import hashlib
import http.client
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            84
            views
        
    Track the connection status from the backend?
                I am Working on a Chat Application developed By laravel (Laravel Reverb) and reactjs.
Two Projects are developed separately and also i am configuring with Laravel Passport.
The Backend basically serve ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            30
            views
        
    YouTube IFrame Player not syncing play/pause state across multiple clients using WebSocket in React
                Trying to synchronize the play/pause of the YouTube player for all the user's. I am getting the data on client side from server but its not playing the or pause the video base on that action.
What I ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            47
            views
        
    Python WebSocket with DhanHQ Market Feed: Issues with Dynamic Watchlist Updates and asyncio Event Loop
                I am developing a real-time market feed system using DhanHQ’s WebSocket API, where I need to:
Subscribe to instruments dynamically (based on a watchlist stored in SQLite).
Unsubscribe from removed ...
            
        
       
    
            -1
            votes
        
        
            1
            answer
        
        
            45
            views
        
    Nodejs Webscoket discord bot authorization
                I tried logging in using my credentials, and I expected the WebSocket connection to recognize my session and allow me to stay connected. However, even after successful authentication, the server still ...