rijs.sessions
Version:
[](https://coveralls.io/github/rijs/sessions?branch=master) [](https://travis-ci.org/rijs/sessions)
11 lines (7 loc) • 657 B
Markdown
# Ripple | Sessions
[](https://coveralls.io/github/rijs/sessions?branch=master)
[](https://travis-ci.org/rijs/sessions)
Enriches each socket with a uniquely identifying matching `sessionID`.
It does this by sharing express session data with socket.io. You will need to provide the following options:
* `secret` — [secret used to sign session ID cookie](https://github.com/expressjs/session#secret)
* `name` — [name of the session ID cookie](https://github.com/expressjs/session#name)