mafintosh / signalhub

Simple signalling server that can be used to coordinate handshaking with webrtc or other fun stuff.
MIT License
667 stars 97 forks source link

module in Node environment can't connect over https? #35

Open kevzettler opened 6 years ago

kevzettler commented 6 years ago

I have a signal hub instance running at https://plebland.com:8080/

I recently moved it to https

I have browser and node applications using the signalhub module.

The node application has stopped connecting since I moved to https.

The browser environment still broadcasts and subscribes successfully.

I have verified by running signalhub broadcast my-app my-channel '{"lol": "what"}' -p 8080 -h localhost

On both the plebland.com host and my local machine

kevzettler commented 6 years ago

I was able to confirm with signalhub subscribe my-app my-channel -p 8080 -h https://signalhub-hzbibrznqa.now.sh/

and signalhub broadcast my-app my-channel '{"lol": "what"}' -p 8080 -h https://signalhub-hzbibrznqa.now.sh/

My dependencies look like:

root@robotbones:~# node -v
v8.4.0
root@robotbones:~# npm -v
5.3.0
root@robotbones:~# npm ls -g signalhub
/root/.nvm/versions/node/v8.4.0/lib
└── signalhub@4.9.0
alvesjtiago commented 6 years ago

@kevzettler could you find a solution to this?

kevzettler commented 6 years ago

@alvesjtiago I did not. I have put this off until I need it for a full production release and will have to dig in then. I partially suspect it could be node version related

alvesjtiago commented 6 years ago

Thank you @kevzettler. I will try to understand the problem in the next couple of days and if I do find what's causing it I'll also share here.