Skip to content

A java implementation of Server Sent Events (SSE), particularly for Firebase streaming.

Notifications You must be signed in to change notification settings

jbrower95/sseclient-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

sseclient-java

A java implementation of Server Sent Events (SSE), particularly for Firebase streaming.

Check it out:

// for firebase streaming of the root, hit /.json.
final URL url = new URL("https://myapp.firebaseio.com/.json");

// firebase auth requires the secret in the 'auth' querystring parameter
final Map<String, Object> queryParameters = new HashMap<String,Object>();
queryParameters.put("auth", "firebasesecret1230981");

// connect to the server
final SSEClient client = new SSEClient(url, null, 3000, null, queryParameters);

// read off messages indefinitely
for (SSEMessage message : client) {
  System.out.println("Got message: " + message);
}

This is a direct port of sseclient 0.0.3.

About

A java implementation of Server Sent Events (SSE), particularly for Firebase streaming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages