Cyclone + Eventsource (realtime push-сообщения)

  • 869 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
869
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
8
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Cyclone + Eventsource realtime push-сообщения
  • 2. cycloneAlexandre Fiori
  • 3. https://github.com/fiorix/cyclone
  • 4. Server Sent Events (EventSource)
  • 5. http://www.w3.org/TR/eventsource/var source = new EventSource("/sse/");source.onmessage = function(e) { console.log(e.data);}
  • 6. id: 100532nretry: 1000nevent: notificationndata: first linendata: second linenn
  • 7. cyclone + sse = cyclone-ssehttps://github.com/FZambia/cyclone-sse
  • 8. Async Non-blockingBroadcast SSE polyfillLong-polling HTTP RedisAMQP Last-Event-IdDom Exception 18 Nginx
  • 9. [ (ucats, 946), (uextras, 899), (udogs, 864), (ubase, 877), (ugeneral, 3586)]