Skip to content

Commit

Permalink
Merge pull request #252 from eatyourgreens/sugar-client-readme
Browse files Browse the repository at this point in the history
docs: instructions for updating the Sugar client
  • Loading branch information
goplayoutside3 authored Oct 30, 2024
2 parents 8157794 + 755de09 commit 721b696
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/SugarClient/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sugar Client

A javascript client for [Sugar](https://github.com/zooniverse/sugar), a notification service using web sockets.

## Primus library

This needs to be kept in sync with the Sugar Server's primus package installation whenever the server version updates due to the way the transport client library is embedded into the version of the primus package, https://github.com/primus/primus#client-library

In order to sync this client version with the server we can derive the latest [primus.js](./primus.js) file by [running the sugar server locally](https://github.com/zooniverse/sugar#development-via-docker--docker-compose) and downloading the primus.js file from sugar dev server via the web browser or via `curl -s http:localhost:2999/primus.js > primus.js`.

You can also download `primus.js` from https://notifications.zooniverse.org/primus.js.

You can then replace the local version of `primus.js` with the server dervied one from sugar server and PR to replace it here.

0 comments on commit 721b696

Please sign in to comment.