We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2035e commit 29c3e23Copy full SHA for 29c3e23
bin/ion-dev.js
@@ -98,7 +98,8 @@ window.IonicDevServer = {
98
99
openConnection: function() {
100
var self = this;
101
- this.socket = new WebSocket('ws://' + window.location.hostname + ':' + IonicDevServerConfig.wsPort);
+ var socketProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
102
+ this.socket = new WebSocket(socketProtocol + '//' + window.location.hostname + ':' + IonicDevServerConfig.wsPort);
103
104
this.socket.onopen = function(ev) {
105
self.socketReady = true;
0 commit comments