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

How to use it when I use the HTTP protocol #214

Open
Engimaz opened this issue Oct 26, 2023 · 2 comments
Open

How to use it when I use the HTTP protocol #214

Engimaz opened this issue Oct 26, 2023 · 2 comments

Comments

@Engimaz
Copy link

Engimaz commented Oct 26, 2023

It seems that he only supports WS or WSS but I use the Gateway service, I use the HTTP protocol, and he can forward my WebSocket requests, so how can I use such a good component.

@KhalfaniW
Copy link

I this is a problem with Websocket protocol not just this library

var webSocket2 = new WebSocket('http://localhost:9000/websocket-proxy');

VM335:1 Uncaught DOMException: Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. 'http' is not allowed.
    at <anonymous>:1:18


@hitecSmartHome
Copy link

Strange. I can initiate a connection with http with a regular js websocket client.

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

3 participants