2014-09-29 52 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',如果你願意的話,你必須手動編寫它。