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

Realtime APIs using WebSockets in PHP

Realtime APIs using WebSockets in PHP

Porque Web Socket se tornou a melhor proposta para substituir as requisições AJAX, Comet, Streaming (para dados) e similares.
Como implementar um WSServer usando Ratchet

Ricardo Coelho

November 29, 2013
Tweet

More Decks by Ricardo Coelho

Other Decks in Programming

Transcript

  1. WS is TCP for Browsers Full Duplex Connection Oriented but

    better… Text AND Binary Message Boundaries URL Addressing
  2. API and Protocol onOpen onMessage onClose onError Piece of cake!

    Handshaking Key Negotiating Frame vs. Message Versioning Extensions Message Format Fragmentation Masking Keep Alive Error Handling Wrapped Protocols Think again