2014-09-29 90 views

回答

0

流星继电器,根据SocksJs READMEFrom SockJS' point of view there is nothing special about SSL/HTTPS. Connecting between unencrypted and encrypted sites should work just fine.

我的代码:

var connection = DDP.connect("ws://127.0.0.1:3000"); 

如果从ws切换到wss(WebSocket的安全),如果主机支持SSL,它将被使用。在我的本地主机上,我没有安装ssl,它不会回退到'ws',如果你愿意的话,你必须手动编写它。