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

Ws host #39

Merged
merged 13 commits into from
Jan 8, 2023
Merged

Ws host #39

merged 13 commits into from
Jan 8, 2023

Conversation

sevenbitbyte
Copy link
Member

@sevenbitbyte sevenbitbyte commented Dec 14, 2022

Changes

Summary

This update provides a working WebsocketComms class with host support. In both host and client usage a PeerComms session is created.

The ServiceHost has been improved to support ws upgrades using the WebsocketServiceHost class.

Future work

Need to improve the peer comms protocol and expected behavior of hosts.

@@ -7,12 +7,12 @@ const SocketComms = require('./socket-comms')
const AUTH_TIMEOUT_MS = 3000

class PeerComms extends SocketComms {
constructor({remoteIdentity, host, party, socket}){
super({remoteIdentity, party})
constructor({remoteIdentity, discoverRemoteIdentity, host, party, socket, ...options}){
Copy link
Member Author

Choose a reason for hiding this comment

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

should document new param

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.

1 participant