28,410 questions
-1
votes
0
answers
10
views
What is the best approach for saving and broadcasting chat messages in Rails with ActionCable? [closed]
Iβm building a chat system in Rails using ActionCable. Users can join a chatroom and send messages in real time.
From a Rails best-practice perspective, which approach is better for building a chat ...
0
votes
0
answers
28
views
How to use Thymeleaf SpringTemplateEngine in SpringBoot 3.5 to process html in websocket or CommandLineRunner context, (ConverterNotFoundException)
I would like to use Thymeleaf in a SpringBoot 3.5.4 web application to process templates into HTML for a websocket controller method. I realize websockets are generally used for JSON responses, but I ...
0
votes
0
answers
35
views
Trying to set up a websocket servlet in an OSGi environment with Jetty 12. Can't figure out this error
I'm working on an OSGi project with Jetty 12, trying to use the HTTP Whiteboard service to register a websocket servlet. Everything worked just fine when I was testing with an HttpServlet, but when I ...
0
votes
0
answers
49
views
How to authenticate a user for websocket communication
I'm making a project in Node.js/Expressand want to implement websockets for a chat feature for it. Although not the issue, I don't yet know whether to use the ws library or socket.io library for the ...
0
votes
1
answer
25
views
JMeter Websockets test report generator shows start date = 1970
Can anyone help?
I have used Peter Doornbosch websockets to create a performance test plan. The websockets worked as expected but when I generate the dashboard report the start date shows up as "...
-4
votes
0
answers
35
views
Websocket with Cloudflare proxy closes connection instantly with code 1006 [closed]
What is the issue or error youβre encountering
I have create a Django app which run on a uvicron server on and AWS EC2. The EC2 is attached to a load balancer which is then connected to cloudflare ...
1
vote
1
answer
62
views
How to properly handle WebSocket of an API that acts as a middle layer between a client (frontend) and another 3rd-party API [closed]
We have an API that acts as a middle layer between a client (frontend) and a 3rd-party API. As for its web socket endpoint, it currently accepts a message (JSON) and a CancellationToken from the ...
-2
votes
0
answers
46
views
Why are Socket.io or WebSockets used in React applications? [closed]
Socket.io or WebSockets are used in React applications for **real-time
communication Normally, React fetches data using HTTP requests (GET, POST), which work on a request-response cycle.
But for ...
1
vote
1
answer
40
views
Laravel Reverb Curl Exception on Laravel Herd
I keep getting this error below
GuzzleHttp\Exception\RequestException: cURL error 1: Received HTTP/0.9 when not allowed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:...
3
votes
1
answer
96
views
Python websocket library, how to print handshake?
I am using the Python websocket library. I need to see the handshake payload.
My code effectively looks like this:
from websocket import create_connection
ws = create_connection("the websocket ...
-3
votes
0
answers
83
views
Not able to connect to Dhan platform websocket
I am not able to connect to Dhan trading platform's live data feed using python & nodejs.
I have paid for Dhan data apis & generated access token there.
The tried the code given at
Dhanhq-py ...
0
votes
0
answers
25
views
How do I (or is it possible to) migrate WebSocketServerComponents.ensureWebSocketComponents() usage from Jetty 10 to Jetty 12?
I have inherited some code based on Eclipse Equinox, Jetty 10 (ee8), with the goal of migrating it to Jetty 12 (ee8). Much of the code involves setting up servlets, and a portion involves servlets ...
3
votes
1
answer
41
views
transcribe in real time whisper from websocket
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
from fastapi.middleware.cors import CORSMiddleware
import numpy as np
import whisper
app = FastAPI()
# Π Π°Π·ΡΠ΅ΡΠ°Π΅ΠΌ CORS Π΄Π»Ρ React ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ
...
1
vote
1
answer
39
views
How to configure Laravel Ratchet WebSocket + ZMQ host/port for local, development, and production environments?
Iβm building a Laravel project that uses a WebSocket server with Ratchet and ZeroMQ (ZMQ) for broadcasting events.
In my local environment, the setup looks like this:
// App\Console\Commands\...
0
votes
1
answer
167
views
Discord voice WebSocket 4006 "Session is no longer valid" error with Nextcord (classic prefix command)
Iβm developing a Discord bot in Python using Nextcord, with classic prefix commands. I want the bot to join a voice channel when a user sends a command.
However, when running the voice join command, ...