Skip to content

EventSourceEncoder is a Elixir library to encode data into EventSource compliant data.

License

Notifications You must be signed in to change notification settings

chatgris/event_source_encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

EventSourceEncoder

EventSourceEncoder is a Elixir library to encode data into EventSource compliant data.

Examples

iex> EventSourceEncoder.encode(1, "This is data")
"id: 1\\ndata: This is data\\n\\n"

iex> EventSourceEncoder.encode(1, "This is new data", :login)
"id: 1\\nevent: login\\ndata: This is new data\\n\\n"

About

EventSourceEncoder is a Elixir library to encode data into EventSource compliant data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages