Skip to main content

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
1 vote
1 answer
4k views

Apache error "ProxyPass unknown Worker parameter" when using "upgrade=WebSocket"?

I am trying to relay the WebSocket connection of V2Ray with Apache according to This post, and the snippet below worked before. <LocationMatch "/{ws_path}}/"> ProxyPass ws://127.0.0.1:{...
whc2001's user avatar
  • 25
-1 votes
1 answer
662 views

WebSocket communication error

Trying to understand what is wrong with WebSocket communication since the fact application is trying resend message. The last WebSocket packet contains error: The client frame set the reserved bits ...
vico's user avatar
  • 99
1 vote
0 answers
771 views

Socket.io proxy through Apache and its performance

I am trying to setup a server for a Socket.IO game, but we will also have a little landing page in php served through Apache. I managed to make the server work by doing a proxy from Apache to the ...
Friendly Zeppelin's user avatar
2 votes
0 answers
1k views

Error 200 during WebSocket handshake: Aws load balancer + ec2 websocket

I'm using load balancer in front of an aws ec2 instance(I will have more in future). In this ec2, I have a website being served by nginx on port 80, a nodejs app listening on 8080 and the websocket on ...
Sandro Benevides's user avatar
2 votes
1 answer
3k views

Allow Websocket connections on Google Cloud Platform

We have a GCE project, with several servers behind a loadbalancer. The servers are running a NodeJS HTTPS server. We have recently tried to implement websocket support, but can't seem to connect to it ...
Nils Eijk's user avatar
2 votes
1 answer
5k views

Nginx timeout for websocket

I'm connecting a client with websocket through Nginx (as a reverse proxy) to an asp.net core application. Between server and client there are heartbeat commands to keep websocket connection open. My ...
Mathias's user avatar
  • 121
1 vote
0 answers
1k views

TLS websocket proxy with deep packet inspection/traffic logging

I have a very specific scenario in which maschines (IoT) are communicating with a central server over websockets. I need to inspect the websockets traffic (wss/tls) for audit and monitoring reasons (...
Kitano's user avatar
  • 11
0 votes
0 answers
3k views

Cannot connect to websocket

When I tried to connect to spring boot web socket from android stomp client, it is not connecting and the catalina log shows Handshake failed due to invalid Upgrade header: null Tomcat server is ...
Sony's user avatar
  • 103
0 votes
1 answer
2k views

Azure WebApp Socket can't connect

I have a ASP .NET application hosted as a WebApp in Azure and a Xamarin client app that consumes that WebApi in Azure. As soon as I changed my webapi to an Azure WebApp, which was previously hosted in ...
user509015's user avatar
2 votes
1 answer
5k views

How to accept HTTPS and Websockets on a new Google Kubernetes Engine deployment?

I set up a simple 1-node GKE deployment with the default (beta) ingress, created via the GCP console. I would like to set up a Google-managed SSL certificate and HTTPS proxy to the a single GKE node &...
Matthew's user avatar
  • 21
2 votes
2 answers
3k views

NGINX Proxy pass to WebSocket and PHP not working with SSL

I'm trying to route requests in Nginx in the following way: Requests made to / should go to a PHP script (proxy.php, which itself is a proxy) Requests made to /websocket should be proxied to http://...
Rico Leuthold's user avatar
0 votes
1 answer
2k views

Redirect websocket and json in SSL with NGINX

I'm getting crazy to solve a problem with the neginx configuration of a live blogging platform. In http it works, and here is the configuration: /etc/nginx/conf.d/default.conf server { listen ...
Roberto Pezzali's user avatar
1 vote
0 answers
3k views

WebSockets + Apache and Nginx in “reverse proxy mode” + SSL/secure

As I had tried to connect PHP WebSocket from socketme.io through HTTP, since it was successful and again after loading certificates and making HTTPS it didn't work. As my hosting server's nginx is ...
Nɪsʜᴀɴᴛʜ ॐ's user avatar
3 votes
1 answer
4k views

An Issue with an AWS EC2 instance when connecting it to WebSocket

As I tried to run the chat app from localhost connected to MySQL database which had been coded with PHP via WebSocket it was successful. Also when I tried to run from the PuTTY terminal logged into ...
Nɪsʜᴀɴᴛʜ ॐ's user avatar
0 votes
1 answer
756 views

Nginx websoket reverse proxy caching

I'm currently using nginx to reverse proxy a websocket based application. Can I enable caching websocket messages to make the application available when service behind is down? I know caching is ...
Lahiru Jayakody's user avatar
0 votes
1 answer
1k views

Nginx + Socket.io + Proxy

After reading several articles, I'm still unable to get my socket.io communication working via a nginx proxy. Below is my nginx configuration: map $http_upgrade $connection_upgrade { default ...
Anshul Koka's user avatar
6 votes
2 answers
15k views

Kubernetes Ingress: How can I expose two ports on one path?

I have a GCE Ingress configured and working with SSL on port 443. I'm trying to get port 28080 pointing to my standalone actionable server. I currently have this for my Ingress yaml: # web-ingress....
Archonic's user avatar
  • 394
1 vote
0 answers
232 views

HTML5/WebSocket Issues Windows Server 2011/2012/2016

We are having a strange issue with running a customer application but only on Windows Server machine, I did highly contemplate posting this to StackOverflow but as I suspect this to be a server ...
Freddy Wetson's user avatar
2 votes
2 answers
7k views

Cannot get websocket connection working with ec2 + application load balancer

I have an aws application load balancer with an https listener on port 9999, forwarding to a group on port 9999 with an ec2-instance being the target. If I run my websocket server with the host name ...
patrick's user avatar
  • 153
2 votes
0 answers
3k views

websocket cannot connect via apache reverse proxy

I am using the terminado and i am running the unique.py inside the demo folder on port 9090 from inside a docker container with a ip of 172.17.0.2 So i have set up a reverse proxy using apache2: <...
Satnam Sandhu's user avatar
1 vote
1 answer
12k views

wss not working in https but ws works in http apache2 ubuntu

My websocket setup works in http. But if I enable ssl(lets encrypt) and change the ws:// to wss://, browser throws this error. WebSocket connection to 'wss://xx.yy.xx.yy:5001/' failed: Error in ...
krkart's user avatar
  • 255
0 votes
1 answer
2k views

Nginx: How to log the number of bytes sent over a websocket?

I am using nginx as a websocket reverse-proxy. I would like to log the number of bytes sent (and ideally also received) over a websocket. If I use $body_bytes_sent in log_format, the entry in the ...
seeker6's user avatar
4 votes
1 answer
14k views

nginx setup for wss:// keep getting 301 redirects

Can't get wss:// (or ws://) working on my Digital Ocean, Ubuntu server using nginx, keep getting 301 redirect and no connection. Websocket server: node + express + uws served on http://localhost:...
Michael Dausmann's user avatar
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 ...
Jose A's user avatar
  • 263
2 votes
0 answers
13k views

Websocket Error in connection establishment: net::ERR_CONNECTION_REFUSED 'wss://'

First I asked this question in stackoverflow, but it looks like a server issue more than coding problem. I am developing a project with Java EE and I have access to the server computer under a ...
tonder's user avatar
  • 121
1 vote
1 answer
865 views

Websocket working within LAN but 502 error from remote client with nginx proxy

I have this really frustrating problem where my server which consists of an nginx reverse proxy and django/channels/daphne websocket host is functioning within the local LAN but from a remote client ...
Chris's user avatar
  • 113
1 vote
0 answers
3k views

Using Apache to relay wss (web-socket) protocol to backend

I'm using Apache 2.4.27. I need to tunnel a client's wss request through an Apache reverse-proxy, to a backend server. However, from a tcpdump, it appears the wss request is being rejected by the ...
Matt Muggeridge's user avatar
1 vote
0 answers
595 views

Amazon AWS WebSocket Load Balancing Scale-In

We are in the process of developing a WebSocket application that will run on the same application servers that serve our APIs, which are all within a target group of a new Amazon Application Load ...
Sivart's user avatar
  • 131
2 votes
1 answer
2k views

Enabling WebSockets (SignalR) with a Barracuda WAF

I am currently tearing my hair out at work trying to resolve an issue with a web application that uses SignalR over WebSockets where traffic is directed through a Barracuda Web Application Firewall (...
jonhoare's user avatar
  • 201
2 votes
0 answers
1k views

Windows server 2016 does not accept incoming WebSocket connections

I have started a websocket server with nodejs on my windows server 2016. The nodejs application started listening on port 1337 and I can initiate websocket connection to my localhost:1337 from browser ...
Meghdad Hadidi's user avatar
0 votes
1 answer
323 views

High CPU load in a data aquisition server

I`ve setup a small python program that uses a websocket connection to acquire data from an API and write it to a postgresql database. There are only two (user) programs running: the websocket ...
Alex's user avatar
  • 121
2 votes
1 answer
1k views

Proxy websocket with parameters through proxypass/proxypassmatch without a VirtualHost

I have been trying for the longest time to proxy a websocket with it's sid variable to the localhost service, that is serving it. I have looked far and beyond for a solution (including a lot of the ...
smsimeon's user avatar
0 votes
1 answer
656 views

How to make TCP server in node.js sticky?

This is a TCP server for receiving data from GPS server const net = require('net'); const lora_packet = require('lora-packet'); const clients = []; const server = net.createServer(function (socket) ...
Abhishek Yadav's user avatar
2 votes
1 answer
1k views

Secure Web Socket connection on ejabberd

I am running ejabberd 17.12. It works fine. With this config, I manage to open non-secure web socket connections to it from my browser using both the JS console and a XMPP client : port: 5280 ip: ...
Alexandre Bourlier's user avatar
1 vote
0 answers
387 views

Azure App Service Deployment not closing Node.js WebSockets connection

Background I'm having trouble with an Azure App Service Deployment. I'm using VSTS to do the deployment using the Azure App service Deploy feature. I'm deploying a Docker container to a Linux App ...
Sawtaytoes's user avatar
1 vote
2 answers
669 views

"WS" HTTP Headers

I am working with a website running on IIS8.5 and I am seeing a set of requests with what I will call "WS" request headers showing up in the serverVariables collection as follows: HTTP_WSHOST ...
GWR's user avatar
  • 165
2 votes
1 answer
17k views

Web app can't connect to websocket server

I have a web app running on HTTP server on port 3000. This app is connected to a websocket server on port 9001. Both WS and HTTP servers are located inside the same VM. When testing the app locally (...
Max Mikhaylov's user avatar
0 votes
1 answer
4k views

nginx: [emerg] unknown directive "<^>upstream"

I'm configuring nginx as a reverse proxy. I have the following in my nginx.conf: user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { ...
Peter David Carter's user avatar
0 votes
0 answers
613 views

TCP Reconnect to Unknown Address with Websocket when there is no Internet

I have used ProcMon.exe to see what happens to my application when there is no internet. My application is an electron application that makes use of websocket to connect to backend service resides in ...
vincent911001's user avatar
2 votes
0 answers
921 views

WebSocket In SYN_SENT State

Redirected from NE, I have a problem in establishing a connection with using websocket. netstat console output FYI, the target that we wish to connect to is 10.121.244.17:45678 which is an instance ...
vincent911001's user avatar
0 votes
1 answer
2k views

forwarding proxmox vnc websocket with nginx

I installed nginx in order to be a lazy person and just go to proxmox.domain.com instead of proxmox.domain.com:8006, but now I can't access the VNC client when connected to the first address, although ...
Seth G.'s user avatar
  • 101
2 votes
2 answers
3k views

Apache Cluster + Tomcat websocket

We've recently configured a new Cluster with the following configuration: www.mydomain.com | APACHE + MOD_JK (AJP) Load Balancer / \ Tomcat1 ...
Medioman92's user avatar
1 vote
0 answers
661 views

Websocket and CDN

I have an application which replies on both http and websocket: it is hosted outside the company server farm. This application is used both via browser/websocket and, through http, from applications ...
Carlo Bertuccini's user avatar
1 vote
0 answers
292 views

Why can Apache proxypass this when nginx can't?

I have an SSL host on my apache server with the following in the VirtualHost: <VirtualHost 217.147.92.100:443> ServerName server.com ServerAdmin [email protected] DocumentRoot /...
KatDevsGames's user avatar
2 votes
3 answers
1k views

IP Tables intercept exception

I've got a set of iptable rules that look like this: -A PREROUTING --jump intercept-nat -A intercept-nat --jump DNAT -s 10.10.1.0/24 ! -d 10.10.1.1/32 -p tcp -m tcp --dport 80 --to-destination 10.10....
Erik Petersen's user avatar
1 vote
0 answers
850 views

Issue deploying Flask Rest Api on Nginx

I'm trying to deploy my flask api rest on nginx (on a subdomain) without success. I've followed this example from Digital Ocean and everything was working properly but then I changed the tutorial ...
NeoSennin's user avatar
2 votes
1 answer
7k views

Apache2 WSS-rewrite

Trying my luck her as StackOverflow was not the right place to ask. Hopefully this is where my question belongs! I have been pulling my hair the last few days getting websockets to work with Apache2....
Erik's user avatar
  • 21
0 votes
1 answer
2k views

Cannot connect through WebSockets with nginx proxy

My setup consists in a headless Chrome instance running on http://localhost:9222. It works if I connect to it directly through a WebSocket client. I would like to put a Nginx server block as a proxy ...
Morgan Touverey Quilling's user avatar
0 votes
1 answer
2k views

In Apache how do I configure a sub-url redirection to socket.io?

I got a simple node.js websocket server: var io = require('socket.io')(12345); io.on('connection', function(socket){ console.log('a user connected'); socket.on('disconnect', function(){ ...
Nelson Teixeira's user avatar
1 vote
1 answer
8k views

How do I forward websocket communication through an intermediary server?

I'm trying to connect a websocket server (linux machine) and client (web browser) through an intermediary server (hosted on an AWS EC2 instance). The EC2 instance provides a public IP that the ...
Nick Sweet's user avatar