QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

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

Open ota32 opened 6 years ago

ota32 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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