Closed muei closed 6 years ago
It's not the best idea to throw exception here, I believe. It'd be impossible to use port
without hostname
option then.
Though probably it'd be better to use either hostname
+ port
, or host
alone. Not together.
Check out the conversation https://github.com/SocketCluster/socketcluster-client/pull/110
In node env, the instance
socket
above with init no hostname, so the hostname will be undefined, but the instance will be create sucess. I don't think this is a good way, I suggesthostname
option item