Upgrade to Pro — share decks privately, control downloads, hide ads and more …

True North WebSocket talk

Chris Boden
November 02, 2012

True North WebSocket talk

Chris Boden

November 02, 2012
Tweet

Other Decks in Programming

Transcript

  1. it’s slow it’s hard to develop it wastes bandwidth ...and

    what’s wrong with that it’s a square peg for a round hole
  2. How Sockets Work • Client connects to server • Server

    accepts connection • An open connection is established/maintained • Client/Server sends message to each other
  3. Ratchet is A pure PHP library to serve WebSockets; it

    is: • RFC6455 compliant • asynchronous • unit tested (hi Mr. Grumpy) • loosely coupled • ready to lose limbs
  4. Flash • Very easy to implement • True pollyfill •

    They’re IE users anyway • It’s Flash... • Up to 3 second connect • Port blocked by proxies Pros Cons
  5. SockJS • Future proof • Uses native fallbacks • Community

    support • No PHP implementation • No sub-protocol support Pros Cons
  6. Today’s Issues • Proxies • Scaling • Use SSL •

    ??? Problem Solution (time solves all problems)