/sse

HTML5 Server-Sent-Events for Go

Primary LanguageGoMIT LicenseMIT

SSE - Server-Sent Events

Build Status Coverage GoDoc

HTML5 Server-Sent Events for Go

Why you should use Server-Sent-Events

  • No need to implement custom protocol (WebSockets), it just uses HTTP
  • Convenient JavaScript API, fires easy to handle Events
  • Auto-Reconnects
  • Unlike WebSockets, only unidirectional (server -> client)

ToDo

  • ID handling
  • Improve Client Channel buffering

Further Readings