Skip to content

WebSocket Server Support for Multiple Client Connections#102

Merged
nickschwab merged 3 commits intodevelopfrom
feature/websocket-server-multiple-connections
Jan 17, 2020
Merged

WebSocket Server Support for Multiple Client Connections#102
nickschwab merged 3 commits intodevelopfrom
feature/websocket-server-multiple-connections

Conversation

@nickschwab
Copy link
Copy Markdown

Fixes #99

This PR is ready for review.

Risk

This PR makes minor API changes.

Testing Plan

Run the Node.js example app and connect 2 or more Core clients to it simultaneously.

Summary

Changed the WebSocketServer transport to act in scope of a single client connected to the server to allow for multiple, isolated client connections. This change is heavily based off of the Java Suite's implementation and intended use of the WebSocketServer transport.

A working example of this can be found in the Node.js example project.

CLA

…ion to the server

+ updated Node.js example project to utilize modified transport
@nickschwab nickschwab requested a review from crokita January 6, 2020 20:36
@nickschwab nickschwab self-assigned this Jan 6, 2020
Copy link
Copy Markdown
Contributor

@russjohnson09 russjohnson09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes looked good to me. I've tested this using multiple connections and haven't seen any issues. I think the ping interval needs to be cleared once the client connection is terminated.

Comment thread lib/node/src/transport/WebSocketServer.js
@russjohnson09 russjohnson09 self-requested a review January 9, 2020 18:36
@nickschwab nickschwab merged commit b939036 into develop Jan 17, 2020
@crokita crokita deleted the feature/websocket-server-multiple-connections branch March 3, 2020 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manage Multiple Connections as Isolated Sessions

3 participants