Skip to content

Swift library to read SSE / EventSources. Works on macOS and Linux

License

Notifications You must be signed in to change notification settings

Dev1an/EventSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bbc2621 · Apr 1, 2017

History

10 Commits
Apr 1, 2017
Mar 31, 2017
Apr 1, 2017
Apr 1, 2017
Apr 1, 2017

Repository files navigation

Installation

on Linux some packages need to be installed first:

sudo apt-get install libssl-dev uuid-dev libcurl4-openssl-dev

Usage

let firebase = "https://homecontrol-f0066.firebaseio.com/Home/0/Radio/0/currentChannel.json"

EventStream(from: firebase) {
	print("event:", $0)
	print("data:",  $1)
}

Missing features

  • Newline separators: the library currently only works with \n as newline. The following separaters are not supported:
    • \r\n
    • \r