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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 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 ...
Mike Keskinov's user avatar
0 votes
1 answer
80 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 ...
Szyszka947's user avatar
0 votes
0 answers
100 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, ...
panchis's user avatar
0 votes
0 answers
79 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 ...
Flotolk's user avatar
  • 101
0 votes
0 answers
42 views

Apache websocket and web app in the same directory structure

I have a web app running in LAMP server now I want to have some features transferred to web socket without changing the directory structure which means the root directory of the web app should be ...
Engin Yilmaz's user avatar
0 votes
1 answer
144 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 &...
markwalker_'s user avatar
0 votes
0 answers
326 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 ...
pileup's user avatar
  • 229
0 votes
0 answers
656 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 ...
VIVEK's user avatar
  • 63
2 votes
1 answer
1k 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....
384X21's user avatar
  • 121
0 votes
1 answer
321 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 ...
cifer's user avatar
  • 101
0 votes
0 answers
2k 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: <...
Steve Moretz's user avatar
0 votes
2 answers
2k 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 ...
screendoor's user avatar
0 votes
1 answer
95 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 ...
ii iml0sto1's user avatar
0 votes
1 answer
222 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 ...
mmuurr's user avatar
  • 135
0 votes
0 answers
63 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 ...
Marvin's user avatar
  • 1
0 votes
0 answers
703 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 ...
Akshay Rajpaul's user avatar
0 votes
1 answer
478 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 ...
Ngdgvcb's user avatar
0 votes
2 answers
342 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 # ...
Steve Moretz's user avatar
0 votes
0 answers
148 views

Nginx and WebSocket Unexpected server response: 400

I'm trying to deploy a NodeJS websocket server to my Cent OS machine which running Nginx, I'm trying to make socket.mydomain.com for the socket and I used the following configuration for nginx map $...
Youssef mahmoed's user avatar
0 votes
0 answers
134 views

Websockets failing without error message

I have a NginX server running two nodeJs applications, Let's call them A and B. Both applications are working correctly for websockets on my local machine, and https calls are working on the server ...
Michael's user avatar
  • 105
0 votes
0 answers
623 views

Nginx: Websocket on port 80 is not working

I have a simple NodeJs Websocket application running, the code for it is // Importing the required modules const WebSocketServer = require('ws'); // Creating a new websocket server const wss = new ...
Bidyut's user avatar
  • 121
1 vote
0 answers
2k views

How do I configure IIS so that websocket conenctions are handled by an external program?

I can't really get my head around how websockets are configured and expected to work on the server. In my case I have a machine (Windows 10) running IIS. On that machine I want to place my own ...
Magnus's user avatar
  • 111
1 vote
2 answers
3k views

How do I configure reverse proxy for WSS support on a different port?

I'm using the vaultwarden docker container, which basically requires a reverse proxy to provide SSL. The container runs a separate web server for Websockets, because Rust's rocket doesn't support web ...
John's user avatar
  • 151
0 votes
1 answer
615 views

kubernetes pod with a socket connection not firing 'close' event

I have a Kubernetes deployment where a pod connects to a client via TCP Socket. On connect and disconnect different events happen. In the dev environment the server can respond to connections, data, ...
Kasey Chakos's user avatar
0 votes
1 answer
568 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 ...
mhk's user avatar
  • 101
0 votes
1 answer
1k views

What happens to existing HTTP and Websocket connections when the NGINX configuration reloads?

Let’s say we have a pretty standard blue/green deployment setup. NGINX is currently proxying all traffic to the live server (BLUE). We then deploy an updated version of our code to the idle server (...
rationaltiger24's user avatar
3 votes
1 answer
5k views

NGINX double proxy not allowing websocket connections

I have two nginx proxies setup on my machine, one to unwrapp SSL and the other to do application-specific proxying (only the second one is version controlled). When I only had one proxy I was able to ...
Simon Richard's user avatar
0 votes
1 answer
1k 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....
urmat abdykerimov's user avatar
0 votes
0 answers
1k views

How to set websocket reverse proxy with both proxy_set_header and SSL allowed?

I get a project where the outer websocket reverse-proxy is implemented by nginx stream. However, steam only means "TCP" and it lost http features like writing the IP's alone the route. Here ...
George Y's user avatar
  • 530
1 vote
1 answer
2k views

How to use smart websocket client from Windows to connect to a running websocket server on virtualbox?

Here is my setup: Windows 8.1 with Ubuntu 18.04 within VirtuablBox 6.0 Run a websocket server at 127.0.0.1:8083 within VirtuablBox Within the VirtuablBox, I can connect to the websocket server with ...
q0987's user avatar
  • 81
1 vote
0 answers
687 views

PHP Websocket in a SSL-enabled website served by apache

I have the following WebSocket code in PHP, which works well when connecting to it by using plain-text ws:// but when I try to connect to it from a front-end Javascript in my SSL-enabled website I get ...
CDoc's user avatar
  • 111
1 vote
0 answers
703 views

Websocket from one HAProxy backend to another backend fails

I have two backends (b1, b2) sitting behind the same frontend (f1) in HAProxy, routing based on host name. I can establish websocket to both b1 and b2 from my laptop, however if I try to establish ...
Ryan's user avatar
  • 187
0 votes
1 answer
2k views

"Bad Request" when sending request to Socket.IO app via Apache

What I have I have Socket.IO app letteraly from template const express = require('express'); const app = express(); const http = require('http'); const server = http.createServer(app); const { Server }...
RoyalGoose's user avatar
0 votes
1 answer
3k 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 ...
Debabrata Mondal's user avatar
1 vote
1 answer
1k views

Replicate nginx reverse proxy config using apache

nginx config: server { listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /path/to/tls/tls.crt; ssl_certificate_key /path/to/tls/tls.key; server_name the.domain....
TREX's user avatar
  • 21
0 votes
1 answer
78 views

What are the scalability concerns with pub/sub servers?

I'm looking into setting up a pub/sub service with websockets. From what I can tell the scalability bottlenecks will mainly be with memory, which affects how many sockets can be opened at a time, so ...
JBaczuk's user avatar
  • 111
0 votes
0 answers
4k views

WebSocket connection to 'wss://[host]/' failed

Environment First of all, I'm using AWS ALB, EC2 with Route 53. ALB is opened for HTTP, HTTPS and EC2 is also opened for All TCP. And I'm using ws library to use websocket. As an HTTPS server In the ...
Yonggoo Noh's user avatar
0 votes
0 answers
463 views

how to set up websocket server along with two laravel backend and a spa

i have two laravel backend setup on different routes. and there is a spa on root. now i want to set a websocket server along with it. here is my website.conf ############## block-4 : multiple ...
rajeshtva's user avatar
  • 101
2 votes
1 answer
6k 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 ...
Normajean's user avatar
  • 131
0 votes
0 answers
66 views

Clients who block all outgoing udp connections having problems connecting to turnserver

We recently had a problem with our turnserver (coturn), some clients who use firewalls to block all outgoing udp connections have problems connecting to it, as far as i know, when udp connection doesn'...
logax's user avatar
  • 129
0 votes
1 answer
384 views

Apache WebSockets "400 proxy error"

We're trying to present the WebSocket-enabled interface from a remote device on our website. I've configured the WebSocket tunnel in Apache, but I'm getting a "400 Proxy Error" in Firefox (...
Roger Dueck's user avatar
1 vote
2 answers
4k views

How to open a socket on EC2 instance?

I want to send webcam video from my laptop to aws EC2 instance. I'm trying to follow suggestions from here and code from here. The issue I'm facing is that I do not know how to open a socket and ...
mirzaD14's user avatar
1 vote
0 answers
42 views

RabbitMQ Stomp one central Node or domain based?

We have a server with about 400 instances of an application, each of these instances has its own domain. We want to set up a RabbitMQ(other server) , also Stomp(websockets) for the Frontend and amqp ...
demonking's user avatar
  • 131
0 votes
0 answers
80 views

Websocket connection delay from Mobile App to Ubuntu 16

I've customers with Android mobiles with my app which forwards selective SMS to a Nodejs based Websocket server on Ubuntu 16. I've two set of customers and another similar Ubuntu 14 with similar app ...
user5858's user avatar
  • 263
0 votes
0 answers
174 views

How to limit the total volumn from a TCP connection

I have a particular application with one type of connection that mostly sends packets to clients while receives nothing but login request. (i.e. video streaming) Therefore I want to limit the Total ...
George Y's user avatar
  • 530
1 vote
1 answer
487 views

WSS Connectivity issue on production

I am using Angular8 as frontend and Nodejs as backend I have Configured WSS on production ,but connection with client not working properly, In one page connection is working but in another page ...
Satish Umagol's user avatar
0 votes
0 answers
1k views

SSL Error: How to use Nginx with Node.js App using Angular and websocket

I am running into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Angular to serve dynamic content and for WebSocket, we use ws. WS working properly but when ...
user23316's user avatar
1 vote
0 answers
2k views

Jitsi Meet in Docker Container: Websocket error

(I asked this question on StackOverflow yesterday, but I didn't receive an answer yet, and maybe Serverfault is a better platform for this question. Also I can't post pictures here, but I hope the ...
anonymus1994.1's user avatar
0 votes
1 answer
644 views

How to create a websocket backend?

I'm getting clueless on this topic. I have a working websocket connection using Mosquitto on server_1 . The webapp that needs to publish the websocket data is in server_2 and is accessed behind a ...
glass's user avatar
  • 25
0 votes
0 answers
6k views

WebSocket connection to 'wss:// failed: Error during WebSocket handshake: Unexpected response code: 404 on channels

I face this error while using channels for WebSockets on django production: WebSocket connection to 'wss://domain.me/ws/orders/confirm_all/' failed: Error during WebSocket handshake: Unexpected ...
MeHDI RH's user avatar