Skip to content

Commit d18c4dd

Browse files
committed
update docs
1 parent 8cb20dc commit d18c4dd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# River
22

3+
⚠️ Not production ready, while Replit is using parts of River in production, we are still going through rapid breaking changes. First production ready version will be `1.x.x` ⚠️
4+
35
River allows multiple clients to connect to and make remote procedure calls to a remote server as if they were local procedures.
46

57
## Long-lived streaming remote procedure calls
@@ -187,10 +189,14 @@ If your application is stateful on either the server or the client, the service
187189

188190
```ts
189191
transport.addEventListener('sessionStatus', (evt) => {
190-
if (evt.status === 'connect') {
192+
if (evt.status === 'created') {
191193
// do something
192-
} else if (evt.status === 'disconnect') {
193-
// do something else
194+
} else if (evt.status === 'closing') {
195+
// do other things
196+
} else if (evt.status === 'closed') {
197+
// note that evt.session only has id + to
198+
// this is useful for doing things like creating a new session if
199+
// a session just got yanked
194200
}
195201
});
196202

0 commit comments

Comments
 (0)