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

No Protocols Passed to window.WebSocket #66

Open
abdalrahmanSrour opened this issue Mar 10, 2020 · 5 comments
Open

No Protocols Passed to window.WebSocket #66

abdalrahmanSrour opened this issue Mar 10, 2020 · 5 comments

Comments

@abdalrahmanSrour
Copy link

Hello and thanks for this great JSON-RPC 2.0 implementation

Anyway i was looking around your implementation and found that in Client APIs the "protocols" is not being passed to "window.WebSocket".
Here at line 26

constructor(address: string, options: {}, protocols?: string | string[])
{
super()
this.socket = new window.WebSocket(address, protocols)

because protocols is always no passed from here at line 93

export default function(address: string, options: IWSClientAdditionalOptions)
{
return new WebSocketBrowserImpl(address, options)
}

I think we can add the protocols as new argument.

@mkozjak
Copy link
Member

mkozjak commented Mar 10, 2020

Thanks, @abdalrahmanSrour, sounds good. Please provide a PR including tests and I’ll be more than happy to take a look and include it!

@mkozjak
Copy link
Member

mkozjak commented Aug 5, 2020

Any updates on this one, @abdalrahmanSrour?

@mkozjak
Copy link
Member

mkozjak commented Aug 26, 2020

@abdalrahmanSrour - ping!

@abdalrahmanSrour
Copy link
Author

Pong!

Sorry for not replying, actually i moved to implement new WS client.
Anyway if i had sometime soon i will try to do it.

@mkozjak
Copy link
Member

mkozjak commented Aug 26, 2020

@abdalrahmanSrour: Using another lib? Which one?

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

No branches or pull requests

2 participants