// Connect to the fids room.
var fids = io.connect("http://localhost:3000/fids?pass=123", {
  "try multiple transports": false
});

fids.on("connect", function()
{
  fids.emit("fleet", { "fleet": "QF" });
  fids.emit("fleet", { "fleet": "QF" });
});

fids.on("fids", function(data)
{
  console.log(data);
  console.log(data);
});

@@ -1,327 +1,411 @@
 // 
-Connect to the fids room.%0Avar fids = io.connect(%22http://localhost:3000/fids?pass=123%22, %7B%0A  %22try multiple transports%22: false%0A%7D);%0A%0Afids.on(%22connect%22, function()%0A%7B%0A  fids.emit(%22fleet%22, %7B %22fleet%22: %22QF%22 %7D);%0A  fids.emit(%22fleet%22, %7B %22fleet%22: %22QF%22 %7D);%0A%7D);%0A%0Afids.on(%22fids%22, function(data)%0A%7B%0A  console.log(data);%0A  console.log(data
+Deps.%0Avar%0A  util            = require(%22util%22),%0A  ws              = require(%22ws%22);%0Avar%0A  log       = util.log;%0A%0Avar wsClient = new ws(%22http://localhost:3000%22);%0A%0AwsClient.on(%22open%22, function()%0A%7B%0A  wsClient.send(JSON.stringify(%7B%0A    %22dataType%22: %22fids%22,%0A    %22query%22: %7B%0A      %22fleet%22: %22CX%22%0A    %7D%0A  %7D));%0A%7D);%0A%0AwsClient.on(%22message%22, function(data, flags)%0A%7B%0A  log(%22client got message %22 + data);%0A  wsClient.close(
 );%0A%7D

test client connects to handler using ws module