40 Commits

Author SHA1 Message Date
Kevin Jahns
20c1ac2619
Merge pull request #114 from aryzing/patch-1
Update utils.js
2022-08-19 15:02:56 +02:00
Himself65
8fa06a4e9f
fix: server.listen port 2022-08-18 15:16:13 -05:00
Eduard Bardají Puig
6415ca2e68
Update utils.js
Added a comment to clarify why reply messages are not sent when their length is 1. Alternatively we could also create a function with a descriptive name of the check being performed,

```js
function hasMessage(encoder) {
    return encoding.length(encoder) > 1;
}
```

The `if` statement would then look something like,

```js
if (hasMessage(encoder)) {
    send(...);
}
```

Thoughts?
2022-08-11 15:44:27 +02:00
Robert Kieffer
c925c2400b
remove vestigial mutex code
Correct me if I'm wrong, but mutex/mux are no longer being used, right?
2022-08-04 13:33:55 -07:00
Kevin Jahns
eb53b555f1
Add docs about auth approach #94 2022-02-23 16:45:38 +01:00
Kevin Jahns
1e1be2cfc7
Merge pull request #75 from rwth-acis/master
Fix for running websocket using dockerfile
2021-11-20 15:28:23 +01:00
Andrew
4da880d741
Console error the error message as well as emitting 2021-10-12 23:37:10 +01:00
Andrew Jackson
460683d2ee Fix invalid messages crashing the server 2021-10-12 17:09:54 +01:00
lakhoune
0d217d3c64 remove semicolons 2021-06-25 16:17:09 +02:00
lakhoune
b623488a57 fix websocket server running in dockerfile 2021-06-18 22:03:17 +02:00
Kevin Jahns
3c38a81327 lint 2021-01-06 13:22:50 +01:00
James Addison
1c278ad268 Add HOST environment variable to configure websocket-server bind address 2021-01-04 17:43:39 +00:00
Kevin Jahns
3dad772dfe simplify getYDoc approach 2020-10-18 18:34:49 +02:00
Duane Johnson
70905bc7a0 Keep persistence object signature
- consolidate getYDoc, findOrCreateDoc
- rename findOrCreateDoc to getOrInitDoc
- rename persistence.getYDoc to getOrCreateDoc
2020-10-10 12:55:41 -06:00
Duane Johnson
576db4267e Add persistence-synced Y.Doc accessor functions 2020-10-08 15:00:26 -06:00
Kevin Jahns
b6bb04a405 put encoder in block to scope it from ping interval handler #30 2020-10-04 12:25:12 +02:00
Brian E. Granger
7533057249 Add clearInterval calls to clean up closure. 2020-10-03 14:30:22 -07:00
Kevin Jahns
7d5517b714 Export docs - fixes #27 2020-08-11 21:53:42 +02:00
Mansehej Singh
a7d805cf43 Fix callback request error logging 2020-07-30 02:44:33 +05:30
Mansehej Singh
7d8d9a4a45 Serialize Yjs type before callback 2020-07-30 02:43:36 +05:30
Mansehej Singh
fe0c51375a Change isCallbackSet from function call to Boolean constant 2020-07-30 02:30:44 +05:30
Mansehej Singh
adfb8724be Implement http based callback 2020-07-12 20:53:52 +05:30
Kevin Jahns
f6943f33af Fix YPERSISTENCE -- allowing y-leveldb persistence 2020-07-10 02:40:03 +02:00
Kevin Jahns
01d8c2a3f5 bump y-protocols for better event handling 2020-06-05 04:11:14 +02:00
Kevin Jahns
68d00c0a92 support query parameters 2020-02-18 15:17:27 -06:00
Kevin Jahns
8e858858ba fix lib0 import in bin/server 2020-01-13 16:55:21 +01:00
Kevin Jahns
dbfce63d6f cjs module 2020-01-13 15:51:35 +01:00
Kevin Jahns
2fa8113e86 fix bin/utils to use require 2019-09-30 10:36:49 +02:00
Kevin Jahns
683313409d setPersistence in bin/utils 2019-09-30 10:28:52 +02:00
Kevin Jahns
f09e4b91ab make ws-server opts optional 2019-09-18 15:16:29 +02:00
Kevin Jahns
dcd6e4c772 allow to disable gc in server 2019-09-18 15:13:09 +02:00
Kevin Jahns
953aa592fe reconnect when no message received in a long time 2019-08-02 00:24:08 +02:00
Kevin Jahns
2e92786bf0 handle unexpected disconnect flow 2019-05-20 14:12:35 +02:00
Kevin Jahns
fb18c6ce30 implement new awareness protocol 2019-05-19 21:06:08 +02:00
Kevin Jahns
e8647afafc update to work with Yjs@13.0.0-82 2019-05-07 14:07:40 +02:00
Kevin Jahns
d4e731fb4a server chatches send errors and checks if the connection is still alive 2019-04-28 17:36:20 +02:00
Kevin Jahns
e819493fe1 add readme 2019-04-28 02:38:41 +02:00
Kevin Jahns
7e481b70e8 separate server into two reusable modules 2019-04-27 00:23:10 +02:00
Kevin Jahns
01519447ca compatible with yjs@v13-79 2019-04-24 08:07:37 +02:00
Kevin Jahns
9208e699e2 init 2019-03-30 11:09:58 +01:00