Skip to main content
Filter by
Sorted by
Tagged with
-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 ...
Haris Ali's user avatar
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 ...
fivejeez's user avatar
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 ...
langri's user avatar
  • 11
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 ...
JuicyGronky's user avatar
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 "...
user31396093's user avatar
-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 ...
Nitish's user avatar
  • 454
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 ...
i-love-backend's user avatar
-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 ...
Huzaifa Imran's user avatar
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:...
Christopher C Okonkwo's user avatar
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 ...
intrigued_66's user avatar
  • 17.4k
-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 ...
Sujata's user avatar
  • 46
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 ...
langri's user avatar
  • 11
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\...
Stevani Putri's user avatar
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, ...
PapierPain's user avatar

15 30 50 per page
1
2 3 4 5
…
1894