Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket support #125

Closed
sj26 opened this issue May 27, 2018 · 5 comments
Closed

Websocket support #125

sj26 opened this issue May 27, 2018 · 5 comments
Labels
z-enhancement ⬆️ Product Enhancement

Comments

@sj26
Copy link

sj26 commented May 27, 2018

It would be fantastic if NGINX Unit supported management of websocket connections supervised by language runtimes, as suggested in #124, and previously confirmed in #6 (comment). This is something hard to do correctly and efficiently in language runtimes themselves, and is a very compelling feature for a high performance application server. (I've opened this issue independently to keep track of interest in the feature.)

@VBart VBart added the z-enhancement ⬆️ Product Enhancement label May 28, 2018
@Felix-Indoing
Copy link

is there any update on this?

@VBart
Copy link
Contributor

VBart commented Jul 21, 2019

is there any update on this?

Here's a separate branch with web-sockets beta support in Node.js and Java: https://github.com/mar0x/unit/tree/websocket

For Node.js instead of:

var http = require('http’);
var webSocketServer = require('websocket').server;

you have to use:

var http = require('unit-http’);
var webSocketServer = require('unit-http/websocket').server;

@cyberquarks
Copy link

cyberquarks commented May 25, 2020

@VBart is there a way to use WebSocket in a Java-based app? If yes, how?

I mean this https://coderwall.com/p/dahxya/implement-websocket-in-a-java-servlet works with Tomcat would it work with Unit also?

@mar0x
Copy link
Contributor

mar0x commented May 26, 2020

@cyberquarks Yes, there is a way to use WebSocket in Java-based app. Our implementation is based on Java API for WebSocket.

Your sample is Tomcat-specific and will not work. You may use other Tomcat WebSocket examples as a starting point.

@ghost
Copy link

ghost commented Nov 26, 2020

Duplicate with #385

@ghost ghost closed this as completed Nov 26, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
z-enhancement ⬆️ Product Enhancement
Projects
None yet
Development

No branches or pull requests

5 participants