Periculum est in mora
Home
/
Technology
Post on 29-Nov-2014
703 views
0 download
Preview:
Click to see full reader
Report this document
SHARE
description
by Alex Krlovich on Frontend DEV Conf'13 http://bit.ly/Alex_karlovich Воркшоп с написанием клиентской части, используя веб-сокеты
transcript
1. , Systems,Frontend :Email: alexkarlovich@gmail.comTwitter: http://twitter.com/AlexKarlovichSite: http://alexkarlovich.com
2. Agenda1. 2. 3. -4.
3.
4. ,
5. -
6. ,
7. c
8. GIF
9. Polling
10. Polling
11. COMET- - Long Polling- Http streaming- Flash-- Java-
12. No comments setTimeout(function () {location.reload();}, 6000);
13. Realtime HTML5- WebRTC.- Server-Sent Events.- WebSocket & API.
14. WebSocket API
15. var socket = new WebSocket(ws://frontendconf.jit.su);socket.onopen = function () {console.log( .);socket.send(JSON.stringify({ token: bVfr4 }));};socket.onmessage = function (data) {var message = JSON.parse(data);if (message.type === user) {alert(message.user.title);}console.log( : + data);};socket.onclose = function () {console.log( .)};socket.onerror = function () {console.log( .)};//socket.binaryType = arraybuffer;
16. - GET /chat HTTP/1.1- Host: server.example.com- Upgrade: websocket- Connection: Upgrade- Sec-WebSocket-Key:dGhlIHNhbXBsZSBub25jZQ==- Origin: http://example.com- Sec-WebSocket-Protocol: chat, superchat- Sec-WebSocket-Version: 13
17. - HTTP/1.1 101 Switching Protocols- Upgrade: websocket- Connection: Upgrade- Sec-WebSocket-Accept:s3pPLMBiTxaQ9kYGzzhZRbK+xOo= Sec- WebSocket-Protocol: chat
18.
19.
20. : Web Sockets vs Polling
21. (Polling)
22. (WebSocket)
23. WebSockets- -- - - - - - - UTF8-
24. - SignalR- Lightstreamer- Socket.io- Sock.js-
25. :
26. WebSocket-:http://tools.ietf.org/html/rfc6455 WebSocket-API:http://www.w3.org/TR/2011/WD-websockets-20110419/
Top related
SP1 Mora Sabater
Documents
4.- Maira Mora
Documents
Mora Graduates 2012
Documents
Cropping assignment mora
Technology
Mora and valen
Sports
Adrian mora u8_t2_aa1
Documents
Julian Mora
Documents
A:1 - Mora MMIX A:1 - Mora Cera · 2019-05-16 · Mora Armatur Box 480 SE-792 27 MORA SWEDEN Monteringsanvisning / Installation instruction Mora MMI W5, Mora Cera W5 Rev. 006 - 19.04.
Documents
MORA presentation brochure
Documents
The Time of Periculum
Documents
Nancy Mora C.
Documents
Nancy Mora
Documents
jugo mora caso
Documents
Mora Frank
Documents
Mora Wik-Lasa
Documents
yolanda mora
Documents
Prepositions Angela Mora
Documents
Mora lázaro emilio_in2_t_global
Travel
Resume Alberto Mora
Documents
Uvod u fiziku mora (fizičku oceanografiju)jadran.izor.hr/~vilibic/razno/Uvod_fizika_mora.pdf · Uvod u fiziku mora (fizičku oceanografiju) ... Razina mora Mjerni instrumenti . Mjerenja
Documents