Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
7 views

ngrok specifiy forwarded ports

In ngrok, I can connect to my local host like this: http://123abc.ngrok.io -> localhost:55914 If I want to connect to say http://123abc.ngrok.io:2001, will that be routed to localhost:2001 or ...
0
votes
0answers
18 views

Ping influencing connection requests per second to NodeJS websocket server

I am running a very simple NodeJS websocket server (code available below). When running this on the local machine and connecting 1.200 clients to it (from the local machine), it processes all requests ...
0
votes
0answers
50 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 ngnix is ...
0
votes
0answers
17 views

websocket over nginx for pm2-web doesn't work

I'm trying to use pm2-web together with nginx. I've setup the location / which redirects the connections to pm2-web correctly. So the website of pm2-web is shown but the dynamic content isn't loaded ...
2
votes
1answer
69 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 ...
0
votes
0answers
63 views

How to pass custom header from NGINX Reverse Proxy to SockJs websocket connection in the server?

I am using NGINX as a reverse proxy. Below are the setings in nginx.conf file. I want to pass a custom header from the proxy to the back-end HTTP server. I do get the custom header in the HTTP server ...
0
votes
1answer
54 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 ...
0
votes
1answer
99 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 ...
0
votes
0answers
12 views

VNC Through Firewall With Single Whitelisted FQDN

We have an appliance that connects to our server that sits behind a firewall and connects through proxy with only one FQDN (let's call it example.com) whitelisted on port 443 for outbound traffic, no ...
0
votes
0answers
24 views

Make HTTP and WebSocket share the same connection with thttpd

I would like to make HTTP and WebSocket share a single TLS-encrypted connection to the port 443. I know it is possible with nginx and apache, but what about thttpd?
0
votes
0answers
53 views

How to forward web-socket request to microservice using nginx

I wanted to forward web-socket request to microservice using nginx. I am hitting https://some-host/download-zip-service/downloadFile By this the calls are landing on download-zip-service and ...
0
votes
1answer
256 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 actioncable server: http://guides.rubyonrails.org/action_cable_overview.html#...
0
votes
0answers
54 views

How many concurrent TCP connections or sockets can be handled by a web server for e.g in a chat application

I find that all the chat servers either use sockets like WhatsApp or long polling to provide the to and fro flow of messages. I wonder how so many concurrent TCP connections or sockets are maintained ...
1
vote
0answers
37 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 ...
1
vote
2answers
941 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 ...
0
votes
0answers
246 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: <...
1
vote
1answer
579 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 ...
0
votes
0answers
53 views

apache websocket conf for microservice managed by load balancer

in my company, we build a platform of many java Micro Services, one of these is going to manage websockets, the Apache configuration is like : Micro Services are being used through the URL api....
0
votes
1answer
158 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 ...
1
vote
1answer
1k 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:...
0
votes
0answers
84 views

Nginx convert from apache rewrite to websocket

I have apache rewrite code for websocket, please help me to convert this to nginx <VirtualHost *80 (or can be another port)>   .....   RewriteEngine on   RewriteCond %{HTTP:UPGRADE} ^WebSocket$ ...
0
votes
0answers
46 views

What is the difference between a plain host name and a fully qualified name when specifying an Automatic Configuration script in IE11

I am having an odd problem with Websockets. We use IE11 as our standard browser, unfortunately it seems that IE & Edge are the only two browsers that exhbit this issue. We use a PAC file to ...
1
vote
1answer
777 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 ...
0
votes
0answers
127 views

Apache2, Safari : Exclude Basic authentication for websockets

We have a Spring-MVC application running on Jetty server which runs on Cometd. For Cometd we are using Websockets. For Websockets, the connection is upgraded from https to WSS. We also have basic ...
0
votes
0answers
3k 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 ...
0
votes
0answers
35 views

apache2 proxypass that works for both http and websockets

I have an apache2 virtual host that redirects traffic to another container. My config looks like this: ProxyPass / http://10.42.XX.XX/ ProxyPassReverse / http://10.42.XX.XX/ It works well, but does ...
1
vote
1answer
177 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 ...
0
votes
0answers
180 views

Nginx error message when closing/rejecting websocket connection

I'm using Nginx to reverse-proxy an api server accepting websocket connections. I do authentication on the server on the connection request. I first accept the connection, then I authenticate the ...
1
vote
0answers
746 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 ...
0
votes
0answers
179 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 ...
0
votes
1answer
287 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 (...
2
votes
0answers
339 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 ...
0
votes
1answer
40 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 ...
0
votes
0answers
163 views

How to configure Hot Module Replacement of WebPack behind a reverse proxy?

I am using ASP.NET Core 2.0 to develop an angular application, and I am using Webpack Hot Middleware with Hot Module Replacement enabled. It is working fine locally on http://localhost:50000, but the ...
0
votes
0answers
245 views

How to auto start services PHP Websocket on Ubuntu 14.0 when OS startup?

Below command is to start socket service. nohup php -q server.php > my.log 2>&1 & echo $! > save_pid.txt But the problem is when the OS shutdown and restart service socket will be ...
3
votes
1answer
179 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 ...
0
votes
1answer
259 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) ...
0
votes
0answers
185 views

WebSocket Request (xhr_send) getting stalled (Tomcat and Apache HTTP)

My application used sockjs & Application is running on Tomcat 8 and APACHE HTTP (2.4.25) as front end web server and they communicated with AJP I have observed that xhr_send request getting ...
1
vote
0answers
222 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: ...
1
vote
0answers
170 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 ...
0
votes
0answers
45 views

Rocket-Chat Livechat bad request received

I am trying to connect to my rocket-chat server by Java Stomp Websocket client. but at the begining, after receiveing "o" and "server_id : 0", I receive "msg: error, reason: Bad request" from server. ...
1
vote
1answer
72 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 ...
1
vote
1answer
2k 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 (...
0
votes
1answer
570 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 { ...
0
votes
0answers
155 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 ...
2
votes
0answers
383 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 ...
0
votes
1answer
314 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 ...
3
votes
2answers
662 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 ...
0
votes
0answers
110 views

Nginx Server interrupt Socket Conn On Node Proxy Although Node Server Running

I am getting too many [error] 17667#0: *344 connect() failed (111: Connection refused) while connecting to upstream, client: errors. i haven't find a solution for long time. These are my nginx setup....
1
vote
0answers
245 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 ...