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
1 answer
23 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, ...
user avatar
0 votes
0 answers
9 views

Websocket Nodej which is better Apache2 Or Nginx for ubuntu instance

I'm working on a project where I have to use websocket apis in nodejs to update data in real time, such as open orders, pricing updates, and other things. Since my front end is react and I need to ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
  • 101
0 votes
1 answer
72 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 (...
user avatar
0 votes
1 answer
255 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 ...
user avatar
0 votes
0 answers
93 views

Optimize small Websocket messages with nginx "tcp_nopush off"?

I'm currently using nginx as a reverse proxy for a websocket server that very frequently broadcasts tiny messages; often 1 - 2 bytes in length. I'm trying to minimize latency as much as possible. It's ...
user avatar
0 votes
0 answers
79 views

Websocket error - Parse live sync

We recently moved from Cloudfare to Akamai and started seeing below error - ParseLiveQuery: WebSocket did disconnect with error: Optional(Starscream.WSError(type: Starscream.ErrorType.upgradeError, ...
user avatar
  • 1
0 votes
0 answers
262 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....
user avatar
0 votes
0 answers
122 views

Proxy pass to express http server not working with secure websocket

So I currently have apache with a proxy pass which redirects all requests to an express api running using the http node module, I also have a letsencrypt ssl certificate installed and all is working ...
user avatar
  • 101
0 votes
0 answers
215 views

NodeJS Unable to connect to Websocket Cross origin - "Err 1006"

I have a two webservers both running https with the same certificates, I have a main shard that the user connects to example.com, they retrieve some data and try to connect to an ip address on the 2nd ...
user avatar
  • 1
0 votes
0 answers
61 views

why litespeed prevent reverse proxy working?

when my server running with litespeed the ProxyPass to external site (e.g. google.com) not working but on apache it works litespeed says that you must add a web server in externalApp in litespeed ...
user avatar
0 votes
0 answers
415 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 ...
user avatar
  • 370
1 vote
1 answer
641 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 ...
user avatar
  • 81
0 votes
0 answers
69 views

How can we deploy the substrate blockchain framework?

I am new to networking and would like to make my substrate-based blockchain available to the public. Indeed, it is always running on local by default but I do not know how to expose that local address....
user avatar
0 votes
0 answers
201 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 ...
user avatar
  • 101
0 votes
0 answers
188 views

Nginx websocket reverse proxy remove location

Trying to set up an nginx https reverse proxy to home assistant, this works: ... location / { proxy_pass http://127.0.0.1:8123; proxy_redirect http:// https://; ...
user avatar
  • 101
1 vote
0 answers
303 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 ...
user avatar
  • 177
0 votes
1 answer
1k 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 }...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
339 views

Nginx revere proxy Websocket error 404

i'm working with two Nginx one behind the each other. Our Infraestructure it's like this infraestructure Problem I've problems with websocket connections, when i send the request to Nginx Proxy pass ...
user avatar
1 vote
1 answer
331 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....
user avatar
  • 21
0 votes
1 answer
62 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 ...
user avatar
  • 111
0 votes
0 answers
53 views

AWS API Gateway Websocket Does Not Route to Custom Routes

I have been struggling to get even a minimum-viable websocket API going on AWS's API Gateway all day. At this point, the gateway is routing all requests to the "$default" route but I am ...
user avatar
0 votes
0 answers
88 views

Apache / Websockets: Direct Sockets to Different (Or To Both) Ports Based On Path - ProxyPass

I am running a website on Apache. I have two apps that use web sockets, one is based on Node, which uses port 3000 and the other is based on Phoenix, which uses port 4000. Both apps also use a reverse ...
user avatar
  • 53
0 votes
0 answers
2k 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 ...
user avatar
0 votes
0 answers
180 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
  • 111
0 votes
0 answers
40 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'...
user avatar
  • 99
-1 votes
1 answer
161 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 (...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
1 vote
0 answers
26 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 ...
user avatar
  • 131
0 votes
0 answers
42 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 ...
user avatar
  • 233
0 votes
0 answers
51 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 ...
user avatar
  • 370
1 vote
1 answer
264 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 ...
user avatar
0 votes
0 answers
770 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 ...
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 ...
user avatar
0 votes
1 answer
315 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 ...
user avatar
  • 25
0 votes
0 answers
5k 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 ...
user avatar
0 votes
0 answers
15 views

Laravel websockets package connection refused? [duplicate]

I using laravel websocket package aspusher replacement. First this ubuntu was not allowing to access the port 6001 then I add Inboud securoty group rule on aws . Now it is allowing to access the port ...
user avatar
3 votes
1 answer
2k views

Nginx reverse proxy + URL rewrite + websockets

I saw this Question, but it doesn't seem to work for me. Current (working) situation is: server { listen 443 ssl; server_name updates.example.com; ssl_certificate fullchain.pem; ...
user avatar
  • 236
1 vote
2 answers
1k views

Can Nginx limit incoming websocket message size?

In the JS WebSocket library, you can limit the maximum allowed incoming message size via the maxPayload option. I'd like to impose this limit in my Nginx reverse proxy layer, before it gets to my ...
user avatar
  • 219
1 vote
1 answer
123 views

Can Apache-2.4 hand off a client connection to a PHP script that speaks WebSocket to the client?

I have an Apache-2.4 web server. It will execute PHP scripts if a client requests https://my.domain.com/script-name.php, and the output of the script shows up in the browser window. (Or it can be ...
user avatar
  • 111
0 votes
1 answer
461 views

Nginx socket reverse proxy got 503 responses on concurrent requests

I am using Nginx as a reverse proxy for my PHP base WebSocket application and I try to load test the WebSocket server with Nginx reverse proxy. And I got 503 errors when concurrent users reach around ...
user avatar
0 votes
1 answer
136 views

ActiveMQ Artemis: Propagate credentials from Websocket to STOMP

Can ActiveMQ Artemis propagate basic authentication information (username, password) from a Websocket to the encapsulated STOMP protocol (STOMP-over-Websockets)? The documentation does not really help ...
user avatar
  • 245
0 votes
0 answers
261 views

Apache Reverse Proxy and ShinyProxy

I wrote a shiny web application and deploy it on a server using ShinyProxy. Accessing the app directly via the IP address and port 8080 works fine. However, I need to connect it to a URL. On the ...
user avatar
  • 103
0 votes
1 answer
490 views

Asp.net core Blazor app with google authentication getting lots of websocket errors

We have a simple asp.net core 3.1 Blazor server-side app which we are trying to run on google app engine but are getting lots of websocket errors during initial connection: WebSocket connection to '...
user avatar
0 votes
1 answer
221 views

Nginx Config for ws://<ip>:<port>

I have a domain i call it <domain> and ip call <ip> and port <my-local-port>, i wan't using nginx on my server (dns binded to my server success), my problem is that reverse proxy ws:/...
user avatar
0 votes
0 answers
141 views

NGINX deny all except websockets for Flask app

I have an Ubuntu server running Flask app under nginx, this is my conf: upstream flaskapp { server 127.0.0.1:5000 fail_timeout=0; } server { listen 80; server_name _; location / { ...
user avatar
  • 101
1 vote
1 answer
2k 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, ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 21