Skip to content

Make ws instance private#28

Open
bobvandevijver wants to merge 1 commit intonocmt:mainfrom
Drenso:private-ws-instance
Open

Make ws instance private#28
bobvandevijver wants to merge 1 commit intonocmt:mainfrom
Drenso:private-ws-instance

Conversation

@bobvandevijver
Copy link

The implementation was using a global property, which is an issue when the create method is called multiple times. This change moves ws and hbIntervalTimer to be a private property of the Connect class, meaning that each client will have their own instance and crosstalk will not happen.

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