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

Generic ws idea #19

Closed
wants to merge 1 commit into from
Closed

Generic ws idea #19

wants to merge 1 commit into from

Conversation

bradymadden97
Copy link
Contributor

No description provided.

) {
super(transport, connectedTo);
this.ws = ws;
ws.binaryType = 'arraybuffer';
this.ws.onmessage = (msg) => this.onMessage(msg.data as Uint8Array);
this.ws.onmessage = (
msg: MessageEvent<any> | IsomorphicWebSocket.MessageEvent,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this part is kinda gross

@bradymadden97
Copy link
Contributor Author

the benefit of this is my client library should be able to just use new WebSocket without importing any library...

@bradymadden97
Copy link
Contributor Author

eh I have to go update a bunch of tests.... it's fine

@jackyzha0 jackyzha0 deleted the generic-ws branch December 11, 2023 00:36
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