Websocket

Libérez les web-app du web

Benjamin Dreux / BenjaminDreux / Benzen / Code3

If you know your history,
Then you would know where you coming from
Bob Marley, Buffalo Soldier
Mother of all demo
If all you have is a hammer, everything looks like a nail

Api Client


          var connection = new WebSocket("ws://localhost:3001");
          connection.onopen = function(){};
          connection.onmessage = function(msg){};
          connection.onerror = function(error){};
          connection.onclose = function(){};
          connection.send( x );
          connection.close();
          

Api Serveur


          var server = ws.createServer(function(connection){});
          server.listen(port);
          connection.sendText(msgAsString);
          connection.close(code, reason);
          connection.on("connection", function(){});
          connection.on("text", function(){});
          connection.on("close", function(){});
          connection.on("error", function(){});
          

Questions ?

Crédit photo

Spect Art Fred Pellerin
Life magazine Memex
Pete Birkinshaw Gear
Ruby Links
Steve Jurvetson Amdahl 470 V/6
Ade Oshineye DSCF4092
Michael Hicks img_7820
Campus Party Brasil Tim Berners-Lee
nathanmac87 Bell
Sébastien Santoro aka Dereckson Requête HTTP
Mike Bitzenhofer Last Dance
The verge Slack
Timothy Allen Push
Yoshihide Nomura Watching TV
Dave Kellam Leapfrog
Juliana S. eletricity!
Chris Blakeley conversation
Wikipedia foundation wikipedia