made websockets work out of the box
authorKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 22 Aug 2012 21:42:13 +0000 (14:42 -0700)
committerMichael Carpenter <malcom2073@gmail.com>
Thu, 23 Aug 2012 09:51:23 +0000 (05:51 -0400)
plugins/websocketsink/test/api.js

index b4e2a8e..30bff95 100644 (file)
@@ -57,7 +57,7 @@ function Vehicle(socketUrl, sCB, eCB, calltimeout)
     function init() {
         if ("WebSocket" in window)
         {
-            self.socket = new WebSocket(socketUrl);
+            self.socket = new WebSocket(socketUrl,"http-only");
             self.socket.onopen = function()
             {
                 self.connected = true;