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 the overhead of http.
214
questions
0
votes
0
answers
16
views
Javascript stuck into function loop
I'm trying to get rid of this loop and cannot find the issue.
I'm using websocket for sending some message , I'm using switch/case statement for calling some functions, Here the code.
var ...
0
votes
0
answers
15
views
How to scale websocket listeners?
I'm asking about the case when your service is listening for some streams with non-stationary message intensity. Such situations are arising naturally if you for example listening for stock exchange ...
2
votes
1
answer
8k
views
How to fix ws and socket.io memory leak?
I have read that there is a memory leak occurring in both node.js websocket modules ws and socket.io. It has existed for years and am wondering how to fix it.
It is mentioned in the following, to name ...
0
votes
0
answers
16
views
Websocket with socket.io on K8S, how to make it work?
I hope you are well
I'm having a problem when trying to open communication between my applications within Kubernetes. Currently client-server communicate through socket.io, but when adding it to ...
0
votes
1
answer
66
views
recv() failed (104: Unknown error) while proxying upgraded connection in nginx
We have a printing application running behind an nginx, and since moving to a new proxy server with a newer nginx, customers are intermittently reporting
System.Net.WebSockets.WebSocketException (...
0
votes
0
answers
42
views
How can I make reverse proxy for websocket requests on apache
I have a website written on Laravel with Reverb for websockets. Everything works except websockets. They are sent from the browser to the server in the form wss://mydomain.com/app (which throw an ...
0
votes
0
answers
33
views
How to override query parameter of original websocket request after extenal authentication?
I use nginx external authentication and have a problem when a request is a websocket request. As a webscoket request hasn't headers it passes jwt token in query string parameter access_token. Nginx ...
0
votes
0
answers
32
views
What part does AWS Global Accelerator play in established TCP connections
Reading the docs I can see that Global Accelerator (GA) routes to nearest region and has failover protection that will cause it to route to a different region if one fails.
I can't find any info that ...
0
votes
0
answers
84
views
Websocket server - working for local connections but not remote?
I am running an embedded Jetty server on Ubuntu (22.04.3), listening to port 8734 (arbitrary number), and testing it with wscat.
The following command connects fine if run on the same machine:
wscat -...
0
votes
0
answers
74
views
Azure Application Gateway for Containers Throws 403 On Websocket Connection
We have a new Kubernetes stack on Azure, with ingresses set up and an Application Gateway for Containers, normal HTTP/HTTPS traffic seems to flow perfectly fine, but our websockets over WSS are all ...
0
votes
1
answer
4k
views
Secure websocket connection to server running on EC2 fails
I have a node.js websocket server running on an EC2 instance on port 8080. Normal websocket connections (ws://) work fine but when I'm trying to make a secure connection (wss://), the websocket ...
0
votes
1
answer
140
views
How to configure an Apache reverse proxy for GitLab with websocket?
I have a self-hosted GitLab instance behind an Apache reverse proxy. Since one of the last releases, real-time updates stopped working. One symptom I could detect was that some websocket calls (to ...
1
vote
1
answer
551
views
Apache reverse proxy to websocket in same context as http
I have an Apache/2.4.6 installation working as a reverse proxy for some applications. Now I have to configure another one. HTTP proxying is working great, but in some sections of the webpage, the ...
0
votes
0
answers
81
views
Nginx - SignalR Web socket Connection Error: Error: WebSocket failed to connect. 500 internal server error
UI:
const connection = new signalR.HubConnectionBuilder()' .withUrl("https://example.com/chatHub", {
skipNegotiation: true,
transport: signalR.HttpTransportType....
0
votes
1
answer
83
views
Nginx SSL handshake issue
Experiencing WebSocket issues for a SignalR chat in the UI while running in production, but in locally it's working. We are using C# in the backend and React in the UI.
I have checked the server log. ...
0
votes
0
answers
81
views
Flask-SocketIO Performance Bottleneck - QueuePool Overflow After Upgrade
I'll try to keep this brief, but I have a lot of code examples to show. Please let me know if you need more context!
We recently updated our flask server to handle web socket connections using flask ...
0
votes
0
answers
2k
views
How to successfull configure nginx for laravel reverb websocket?
Triying to setup ssl for laravel reverb using nginx on ubuntu
Laravel reverb docs
/etc/supervisor/conf.d/websockets.conf
[program:websockets-l11]
command=/usr/bin/php /var/www/l11/artisan reverb:start
...
-1
votes
1
answer
52
views
What are cons of websockets? [closed]
I mean why at first place polling and server events exist if websocket can not only solve the problems they are solving but also allow additional functionalities (like bidirectional nature). I guess ...
1
vote
0
answers
132
views
Is it possible in Apache MPM-Event to force it to stop connections after a timeout when a process is shutting down and the scoreboard is full?
We are using WebSockets that hold connections for a long time, possibly weeks.
Apache 2.4.41 w/MPMEvent sometimes decides to stop a process (such as 1: when load drops, 2: when user reloads ...
0
votes
0
answers
93
views
Bypass DNS rebinding for localhost
I am encountering more and more issues with an app I created that binds to 127.0.0.1 on an obscure port. I have a domain name - due to needing an SSL cert - that resolves to 127.0.0.1.
I have this ...
0
votes
0
answers
38
views
How to configure Apahce with websocket through python daphne DJango on EC2 server
Below is my virtual host for running python
<VirtualHost *:8000>
DocumentRoot /var/www/VITSBACKEND
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log ...
0
votes
2
answers
234
views
websockets apache2 not working
I'm busy with implementing websockets on our reverse proxy (apache2) we redirect our traffic to tomcat with a proxypass but it's not working we get an 403 (forbidden in our logs)
apache vhost file:
&...
0
votes
0
answers
103
views
Troubleshooting Apache ProxyPass Error 500 for WebSockets in VHost Config
I'm encountering an issue with my Apache VHost configuration, and I could use some help to understand and resolve it. Here are the details:
I have a Linux server with the following specifications:
...
0
votes
0
answers
62
views
How to configure Apache 2.4 to use ProxyPass to rewrite the websocket's port?
My Nodejs WS ( pure Websocket, I am not using socket.io ) works on port 5000 and I wish to proxy pass to the domain itself.
I have tried to add the following lines but I still failed to get myself ...
0
votes
0
answers
252
views
HTTPs connection works, but WebSocket fails on the same server/port
I'm the dev of mobile app game for Android. The app is using both HTTPs and WebSocket connection to the same server. The app is live and works well for most users.
I have one user who said the app is ...
0
votes
1
answer
451
views
Does reverse proxying the WebSockets servers make sense from scaling perspective?
I have reverse proxy and multiple WebSocket servers behind it. I'm confused whether it makes any sense from scaling perspective, because I see it like that:
The WebSocket server A has 30,000 active ...
0
votes
0
answers
316
views
Forward local generated Secure Websocket traffic (wss) through an HTTP/HTTPS proxy to reach internet
I have a python webex_bot application (https://github.com/fbradyirl/webex_bot) which uses websockets for webex cloud communication. The problem is that the server in which the bot is being hosted on, ...
1
vote
1
answer
4k
views
No protocol handler was valid for the URL /url. If you are using a DSO version of mod_proxy
Trying to set up a load balancer using Apache 2.4.x on Windows.
Error: No protocol handler was valid for the URL /path/. If you are using a DSO version of mod_proxy, make sure the proxy submodules ...
1
vote
0
answers
302
views
nginx logging (111: connection refused) when connecting to a websocket
So I have a small Raspberry Pi on my local network that I use to host a server. It is a fairly simple setup, with nginx and my npm-hosted server stood up in containers using docker-compose.
my npm ...
0
votes
1
answer
1k
views
Loadbalancing websockets with nginx behind haproxy
I have an Nginx instance which serves requests proxied to it from an haproxy. This instance should balance load between several websocket server. To get better performance the load balancing should be ...
0
votes
1
answer
509
views
work with AWS ELB to keep websocket connections during server restarting?
So we have a server application which communicates with clients through websocket and we need to regularly upgrade our server app binary. We may have multiple server instances, I know that I can ...
0
votes
1
answer
429
views
Access errors passing traffic from nginx to daphne server
I've got a GKE private k8s cluster with nginx and a django application running with wsgi and asgi. Logs from nginx show that websocket requests get a 403, and the logs on the daphne pod are showing &...
0
votes
0
answers
752
views
Can't connect to WebSocket server over wss:// (ws:// works), and no debug information
I have a website on example.com, and a WebSocket server on example-websocket-server.com.
Each have an SSL certificate so that I can access them from https://
I am using the websocket server as a ...
16
votes
2
answers
22k
views
Proxy Websockets and HTTP through the same location in Nginx
Right now there's an application that allows people to connect to a Desktop app through the web by exposing an AngularJS web server powered by Atmosphere. The Desktop app exposes the current person's ...
3
votes
1
answer
2k
views
How to configure streamlit to serve an app to www?
streamlit app is running in a centOS stream 8 virtual machine. Access from intranet is fine but fails with "streamlit please wait.. page" when accessed from www via subDomain.companyDomain....
0
votes
0
answers
2k
views
Different port forwarding for https and wss (Websocket) using firewalld
Currently I setup port forwarding for a nodejs server such that all http requests (using tcp protocol) get redirected from port 80 to 3000, and all https requests (using tcp) get redirected from port ...
0
votes
2
answers
465
views
Does apache ProxyPass handle tls for websocket too?
I'm new to proxypass, Let's say this is our config:
<IfModule mod_ssl.c>
<VirtualHost *:443>
# The ServerName directive sets the request scheme, hostname and port that
# ...
45
votes
6
answers
83k
views
Configuring Apache2 to proxy WebSocket?
The WebSocket protocol is an extension of the HTTP protocol. However, the proxy module of Apache2 does not seem to know about it, and throws away crucial headers, converting the call to a standard ...
0
votes
0
answers
4k
views
Nginx upstream wss proxy SSL_read() failed (SSL: error:0A000126:SSL routines::unexpected eof while reading)
What I need is
Client <--wss---> nginx <--wss--> server
I am doing a wss proxy, I have already got it working on Apache but I want to switch to nginx now here's the apache config:
<...
2
votes
2
answers
7k
views
HTTP and websocket on the same port and domain behind reverse proxy
I wanted to try Node-Red and have installed it on my Ubuntu server. This server runs an apache reverse proxy but I can't get it to work right. If I create a virtualhost for the HTTP connection I can ...
0
votes
1
answer
838
views
SIP Websocket to UDP proxy server
There is an ATS provider with SIP phones. It provides phones via UDP, as I understand, giving sip server, login and password for each internal call-line.
I want to write a site with browser calls ...
9
votes
3
answers
17k
views
Apache mod_proxy: forward secure websocket to non-secure
The websocket library I rely on (PHP-Websockets) does not yet support secure sockets (wss). My website is served over https though, so I cannot use insecure ws connections.
I'm trying to use Apache's ...
0
votes
1
answer
156
views
How do I setup a SSL certificate for an express.js server behind a load balancer?
I'm restructuring my server structure by splitting them up instead of running everything from one server.
I looked here but that just specifies what I were already doing in the original setup with ...
0
votes
1
answer
501
views
After establishing WebSocket tunnel, does NGINX continue to 'be in the loop'?
I have a WebSocket server-side application fronted by an Nginx reverse proxy and all is working great. The WS app runs in a container as does Nginx, and both then work together as a service.
Now I'm ...
0
votes
0
answers
83
views
haproxy between http-only client and websockets only backend
odd request maybe, but I have a need to proxy between a HTTP-only client and a WebSocket-only server. these are not long-lived connections; the client does a POST with some binary data that needs to ...
0
votes
0
answers
994
views
How do I get SignalR server deployed on AWS EKS behind nginx to allow websocket protocol connections?
I have a .NET 6 Web API with SignalR. Everything works perfectly when connecting directly to the API - locally as well as via Endpoint IP:Port on AWS EKS. However, it's failing to connect specifically ...
0
votes
1
answer
2k
views
Can't establish wss connection [React + ASP.NET Core, SignalR + nginx]
I have React app that talks to Asp.Net core API. Both of them are deployed on Docker on my VM. Nginx is installed and configured to resolve domain names for app (thesis.uno - for react app, api.thesis....
2
votes
1
answer
2k
views
Can not using websocket with nginx
I am using Activemq as broker, client side is Paho js to send websocket request(ws protocol).
Everything work fine on server, but when the server start to set nginx as proxy, the client can not ...
5
votes
1
answer
3k
views
Nginx proxy websocket: is it required to close the connection to backend after upgrading to a websocket?
Base on what I could read on nginx site
https://www.nginx.com/blog/websocket-nginx/
The exemple they give will close all connections to backend. This isn't really what we want on a proxy setup, ...
2
votes
1
answer
3k
views
Tomcat servlet will not complete websocket connection
I am moving a set working servlets from one server to another
Old server, Centos6, Apache 2.2, Tomcat 9
New Server, Centos7, Apache 2.4, Tomcat 9
I have about 5 servlets running from the old server ...