Browse Source

use ws on localhost for osc

Nikolay Suslov 6 years ago
parent
commit
a508db85a7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      public/vwf/view/osc.js

+ 6 - 1
public/vwf/view/osc.js

@@ -100,8 +100,13 @@ define(["module", "vwf/view", "vwf/view/oscjs/dist/osc-module"], function(module
 	
 			this.disconnect();
 
+			var url = 'wss://' + this.hostValue + ':' + this.portValue;
+			if (this.hostValue == 'localhost'){
+				url = 'ws://' + this.hostValue + ':' + this.portValue
+			}
+
 			this.port = new osc.WebSocketPort({
-                url: 'wss://' + this.hostValue + ':' + this.portValue
+                url: url //'wss://' + this.hostValue + ':' + this.portValue
                 //url: "ws://localhost:8081"
             	});