Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

WebSockets??

  • Loading branch information...
commit 69d3f0caa94d974bfa3a8a5f6021ae49fade932d 1 parent 9f5a8d7
Daniel Bartlett authored February 07, 2011
11  public/index.html
@@ -6,13 +6,14 @@
6 6
     var sock = null;
7 7
     var ts = null;
8 8
     var body_loaded = function () {
9  
-      sock = new io.Socket(null, {
10  
-        port: 80
  9
+      sock = new io.Socket();
  10
+      // sock = new io.Socket(null, {
  11
+      //  port: 80
11 12
         // ,
12 13
         // ,transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-multipart', 'xhr-polling', 'jsonp-polling']
13  
-        , transports: ['websocket']
14  
-        , rememberTransport: false
15  
-      });
  14
+      //  , transports: ['websocket']
  15
+      //  , rememberTransport: false
  16
+      // });
16 17
       sock.on('message', handleMessage);
17 18
       sock.connect();
18 19
       ts = document.getElementById('timestamp');
4  socket-demo.js
@@ -16,9 +16,7 @@ app.listen(process.ENV['app_port'], process.ENV['app_host']);
16 16
 
17 17
 var socket = io.listen(app, {
18 18
   flashPolicyServer: false,
19  
-  // transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-multipart', 'xhr-polling', 'jsonp-polling']
20  
-  // transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-multipart', 'jsonp-polling']
21  
-  transports: ['websocket']
  19
+  transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-multipart', 'xhr-polling', 'jsonp-polling']
22 20
 });
23 21
 
24 22
 socket.on('connection', function(client) {

0 notes on commit 69d3f0c

Please sign in to comment.
Something went wrong with that request. Please try again.