Skip to content
Chatphrase Asynchronous Representational State Signaling
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib Refresh TTLs *correctly* Jan 13, 2014
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
server.js

README.md

caress

Chatphrase Asynchronous Representational State Signaling

Build Status

Minimum requirements

Note that this system uses Lua scripts, and as such requires at least Redis 2.6 to run.

The Lua scripts as written do not use KEYS arguments to declare their operated-on keys, and as such should be considered not Redis Cluster-compatible.

Configuration

Configuration for the database expects a "redis" object with "port" and "hostname", as used by envigor.

DB layout

Different keys are associated with different states:

Initial offers

offer-list/{offer name}

The list of sent messages for the named unanswered offer.

Until the name is answered, only the first item will be provided to agents requesting the offer via HTTP.

offer-reply-location/{offer name}

The UUID of the endpoint accepting answers to the named unanswered offer.

offer-name/{uuid}

The name of the offer that this UUID is listening for answers to.

offer-answer/{uuid}

The UUID listening for answers from the given UUID.

Matched endpoints

message-list/{uuid}

The list of sent messages for the named unanswered offer.

match/{uuid}

The UUID the given UUID is connected to. Messages should be sent to message-list/{uuid from match/{uuid}}.

Something went wrong with that request. Please try again.