Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
websockets e voce tudo a ver Abdala Cerqueira $ & & ! “ _
Slide 2
Slide 2 text
Abdala Cerqueira • Formado em Sistemas para Web • Especializacao em sistemas distribuidos • Consultor Independente • Coordenador do PHP-PB
Slide 3
Slide 3 text
Agenda • Websockets • Utilizacao • Ratchet • Demo _
Slide 4
Slide 4 text
Websockets • QUando surgiu? • 2007 - Primeiros rascunhos • 2009 - Websocket API - W3C • 2010 - WebSocket protocol - IETF (RFC 6455) & &
Slide 5
Slide 5 text
Websockets • Por que surgiu? • Comet (pull, Long pull), XMPP/BOSH, Reverse HTTP • Onde se aplica? • Real-time, colaboracao, jogos !
Slide 6
Slide 6 text
Subprotocolos • WAMP - WebSocket Application Messaging Protocol • MBWS - MessageBroker WebSocket Subprotocol • MS-SWSB - SOAP Over WebSocket Protocol Binding • STOMP - Simple Text Oriented Messaging Protocol • XMPP - Extensible Messaging and Presence Protocol “
Slide 7
Slide 7 text
Similares • SSE - Server-sent Events - EventSource • SPDY/HTTP2 - Server Push
Slide 8
Slide 8 text
Suporte http://caniuse.com/#feat=websockets & &
Slide 9
Slide 9 text
Ratchet • Escrito em PHP • Utiliza React internamente (Event-driven, non-blocking I/O) • Http Server, WebSocket Server, Wamp Server • Router, SessionProvider, OriginCheck, FlashPolicy, IpBlackList $
Slide 10
Slide 10 text
Utilizacao • Servidor • onOpen, onMessage, onClose • Cliente • onopen, onmessage '
Slide 11
Slide 11 text
DEMOOOO!!!
Slide 12
Slide 12 text
Obrigado! • Ratchet - http://socketo.me • Api - http://www.w3.org/TR/websockets • Protocolo - http://www.rfc-editor.org/ rfc/rfc6455.txt • Wamp - http://wamp.ws