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 can I connect to instance using web sockets with 'https' #29

Open
ota32 opened this issue Jan 24, 2018 · 2 comments
Open

How can I connect to instance using web sockets with 'https' #29

ota32 opened this issue Jan 24, 2018 · 2 comments

Comments

@ota32
Copy link

ota32 commented Jan 24, 2018

Hi I'm just wondering if there is any way to connect nem instance with 'https' not 'http'.
I tried to connect with instance as following.

in javascript

// Create a connector object
var connector = nem.com.websockets.connector.create(endpoint, address);

// Connect using connector
connector.connect()

I am using firebase server and it doesn't allow me to use http request.
If I can get any solution, it would be so appreciated.
Thanks in advance.

@evias
Copy link
Contributor

evias commented Jan 24, 2018

Hey there, not a lot of endpoints will give you a https websocket connection port. Some do (public.nemchina.com for example), and its usually using 7779 rather than 7778 as the normal ws://

@ota32
Copy link
Author

ota32 commented Jan 25, 2018

ok. I'll give it a try. Thanks for the help.

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