214 Commits

Author SHA1 Message Date
Kevin Jahns
61c2035e34 1.5.0 2023-03-11 10:18:19 +01:00
Kevin Jahns
35be3431b8 upgrade typescript & lint 2023-03-11 10:17:44 +01:00
Kevin Jahns
51b7052860 bump rollup 2023-03-11 10:14:28 +01:00
Kevin Jahns
c4c3d845ea
Merge pull request #134 from Abdel-Monaam-Aouini/add-workflow
feat: add worklows PR & master
2023-03-11 08:52:20 +01:00
Abdel-Monaam-Aouini
9cd9600ce1 feat: add worklows PR & master 2023-03-10 21:54:27 +01:00
Kevin Jahns
10f650c0d0 1.4.6 2023-03-02 17:10:19 +01:00
Kevin Jahns
0b5279fd33 cleanup 2023-03-02 17:08:56 +01:00
Kevin Jahns
d22aecca7f
Merge pull request #121 from strdr4605/master
fix: WebSocket is already in CLOSING or CLOSED state.
2023-03-02 17:03:30 +01:00
Kevin Jahns
312ac84975
Merge pull request #132 from kkeybbs/master
Add server side transaction origin
2023-02-22 13:05:57 +01:00
kkeybbs
6c945d3ebd
Add server side transaction origin 2023-02-22 14:05:23 +08:00
Kevin Jahns
d98ea1fb83 add exports.module field - yjs/yjs#438 2023-01-01 18:39:27 +01:00
Dragoș Străinu
58ae11f52c fix: WebSocket is already in CLOSING or CLOSED state.
Based on https://stackoverflow.com/q/48472977
2022-09-28 15:30:35 +03:00
Kevin Jahns
da27b0bdbf 1.4.5 2022-09-09 16:31:02 +02:00
Kevin Jahns
829a159409 use unload instead of beforeUnload to send disconnect message. closes #119 2022-09-09 16:30:00 +02:00
Kevin Jahns
2ef5e96528 bump lib0 dependency. closes #118 2022-09-08 19:01:36 +02:00
Kevin Jahns
8e85c7fb16 lint 2022-08-31 22:20:43 +02:00
Kevin Jahns
8c04e0a0c5 fix handling of auth message - fixes #117 2022-08-31 22:13:57 +02:00
Kevin Jahns
37887badc1 1.4.4 2022-08-19 15:10:28 +02:00
Kevin Jahns
1d5d547ac0 lint 2022-08-19 15:09:54 +02:00
Kevin Jahns
20c1ac2619
Merge pull request #114 from aryzing/patch-1
Update utils.js
2022-08-19 15:02:56 +02:00
Kevin Jahns
aa43c0b395
Merge pull request #115 from aryzing/patch-2
Export message type constants
2022-08-19 15:01:58 +02:00
Kevin Jahns
2da70b3790
Merge pull request #116 from Himself65/patch-1
fix: `server.listen` port
2022-08-19 15:00:46 +02:00
Himself65
8fa06a4e9f
fix: server.listen port 2022-08-18 15:16:13 -05:00
Eduard Bardají Puig
1ee18c3766
Export message type constants 2022-08-11 23:32:11 +02: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
Kevin Jahns
625a9d52ba
Merge pull request #113 from broofa/patch-1
remove vestigial mutex code
2022-08-05 10:15:09 +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
bfb9d30eb9
Merge pull request #111 from lijie1129/refactor/resync
Improve the judgment condition of WS connection status in resync
2022-06-26 21:59:11 +02:00
lijie
f02ed3474f Improve the judgment condition of WS connection status in resync scenario 2022-06-26 23:50:49 +08:00
Kevin Jahns
f133fb2db5 1.4.3 2022-04-22 12:46:50 +02:00
Kevin Jahns
3c774953ec add option to disable broadcastchannel - closes #103 2022-04-22 12:44:47 +02:00
Kevin Jahns
cc6df43a74 1.4.2 2022-04-21 12:37:46 +02:00
Kevin Jahns
d4f4a99d45
Merge pull request #102 from war1644/master
Master
2022-04-21 12:36:11 +02:00
war1644
73157ab4b3
Fixed: The memory leak problem that 'websocketprovider' cannot release because 'process' listens to' exit 'events and uses anonymous functions to contain' this' 2022-04-21 17:55:57 +08:00
Kevin Jahns
313c38a2d6 1.4.1 2022-04-17 16:19:08 +02:00
Kevin Jahns
d6df8ad11f remove usage of lib0/mutex - closes #99 2022-04-17 16:17:27 +02:00
Kevin Jahns
6fcabc57e0 add documentation 2022-03-21 13:30:57 +01:00
Kevin Jahns
fc009dd532 1.4.0 2022-03-21 13:18:51 +01:00
Kevin Jahns
33c00217de add y-websocket bin entry (should be the proper name) 2022-03-21 13:17:46 +01:00
Kevin Jahns
57fba26e7a
Merge pull request #91 from zhuangya/patch-1
correct npx directive
2022-03-21 13:16:15 +01:00
Kevin Jahns
4c4b244c0e implement connection-close & connecton-error event and add parameter for exponential backoff 2022-03-21 13:07:11 +01:00
Kevin Jahns
eb53b555f1
Add docs about auth approach #94 2022-02-23 16:45:38 +01:00
Ya Zhuang
6b61bae779
correct npx directive
according to the [doc](https://docs.npmjs.com/cli/v8/commands/npx), npx needs package name rather than the binary name. so executing `npx y-websocket-server` would not download and run the server binary in `y-websocket`, it would download from [y-websocket-server](https://npmjs.com/package/y-websocket-server) instead, which could lead to remote arbitrage code execution.
2021-12-30 11:40:59 +08:00
Kevin Jahns
011a06fe8e 1.3.18 2021-11-20 15:43:31 +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
Kevin Jahns
c4db346b20
Merge pull request #84 from realcliffzhang/package-json-exports-fix
📦 package.json - Allow import paths y-websocket/bin/utils, y-websocket/bin/callback
2021-11-20 15:26:20 +01:00
Cliff Zhang
628804a406 fixed package.json - Allow import paths y-websocket/bin/utils, y-websocket/bin/callback 2021-10-14 11:54:41 -04:00
Kevin Jahns
caa6304ba3 1.3.17 2021-10-13 18:37:02 +02:00
Kevin Jahns
a5c72c09e8
Merge pull request #83 from andrew-d-jackson/fix/fix-invalid-message-crashing-server
Fix invalid messages crashing the server
2021-10-13 18:33:12 +02:00
Andrew
4da880d741
Console error the error message as well as emitting 2021-10-12 23:37:10 +01:00