Skip to content

Bring v2 up to date with current changes on master #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 47 commits into
base: v2
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
011a06f
1.3.18
dmonad Nov 20, 2021
6b61bae
correct npx directive
zhuangya Dec 30, 2021
eb53b55
Add docs about auth approach #94
dmonad Feb 23, 2022
4c4b244
implement connection-close & connecton-error event and add parameter …
dmonad Mar 21, 2022
57fba26
Merge pull request #91 from zhuangya/patch-1
dmonad Mar 21, 2022
33c0021
add y-websocket bin entry (should be the proper name)
dmonad Mar 21, 2022
fc009dd
1.4.0
dmonad Mar 21, 2022
6fcabc5
add documentation
dmonad Mar 21, 2022
d6df8ad
remove usage of lib0/mutex - closes #99
dmonad Apr 17, 2022
313c38a
1.4.1
dmonad Apr 17, 2022
73157ab
Fixed: The memory leak problem that 'websocketprovider' cannot releas…
war1644 Apr 21, 2022
d4f4a99
Merge pull request #102 from war1644/master
dmonad Apr 21, 2022
cc6df43
1.4.2
dmonad Apr 21, 2022
3c77495
add option to disable broadcastchannel - closes #103
dmonad Apr 22, 2022
f133fb2
1.4.3
dmonad Apr 22, 2022
f02ed34
Improve the judgment condition of WS connection status in resync scen…
Jun 26, 2022
bfb9d30
Merge pull request #111 from lijie1129/refactor/resync
dmonad Jun 26, 2022
c925c24
remove vestigial mutex code
broofa Aug 4, 2022
625a9d5
Merge pull request #113 from broofa/patch-1
dmonad Aug 5, 2022
6415ca2
Update utils.js
aryzing Aug 11, 2022
1ee18c3
Export message type constants
aryzing Aug 11, 2022
8fa06a4
fix: `server.listen` port
himself65 Aug 18, 2022
2da70b3
Merge pull request #116 from Himself65/patch-1
dmonad Aug 19, 2022
aa43c0b
Merge pull request #115 from aryzing/patch-2
dmonad Aug 19, 2022
20c1ac2
Merge pull request #114 from aryzing/patch-1
dmonad Aug 19, 2022
1d5d547
lint
dmonad Aug 19, 2022
37887ba
1.4.4
dmonad Aug 19, 2022
8c04e0a
fix handling of auth message - fixes #117
dmonad Aug 31, 2022
8e85c7f
lint
dmonad Aug 31, 2022
2ef5e96
bump lib0 dependency. closes #118
dmonad Sep 8, 2022
829a159
use unload instead of beforeUnload to send disconnect message. closes…
dmonad Sep 9, 2022
da27b0b
1.4.5
dmonad Sep 9, 2022
58ae11f
fix: WebSocket is already in CLOSING or CLOSED state.
strdr4605 Sep 28, 2022
d98ea1f
add exports.module field - yjs/yjs#438
dmonad Jan 1, 2023
6c945d3
Add server side transaction origin
kkeybbs Feb 22, 2023
312ac84
Merge pull request #132 from kkeybbs/master
dmonad Feb 22, 2023
d22aecc
Merge pull request #121 from strdr4605/master
dmonad Mar 2, 2023
0b5279f
cleanup
dmonad Mar 2, 2023
10f650c
1.4.6
dmonad Mar 2, 2023
9cd9600
feat: add worklows PR & master
Abdel-Monaam-Aouini Mar 10, 2023
c4c3d84
Merge pull request #134 from Abdel-Monaam-Aouini/add-workflow
dmonad Mar 11, 2023
51b7052
bump rollup
dmonad Mar 11, 2023
35be343
upgrade typescript & lint
dmonad Mar 11, 2023
61c2035
1.5.0
dmonad Mar 11, 2023
5db415a
bump packages
dmonad Mar 11, 2023
07123d4
Merge branch 'master' into v2
joshkopecek Jun 3, 2023
37d7590
Remove mutex to pass linting
joshkopecek Jun 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed: The memory leak problem that 'websocketprovider' cannot releas…
…e because 'process' listens to' exit 'events and uses anonymous functions to contain' this'
  • Loading branch information
war1644 authored Apr 21, 2022
commit 73157ab4b3c72529bca72cbc3e54a097e80c82a2
4 changes: 2 additions & 2 deletions src/y-websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class WebsocketProvider extends Observable {
if (typeof window !== 'undefined') {
window.addEventListener('beforeunload', this._beforeUnloadHandler)
} else if (typeof process !== 'undefined') {
process.on('exit', () => this._beforeUnloadHandler)
process.on('exit', this._beforeUnloadHandler)
}
awareness.on('update', this._awarenessUpdateHandler)
this._checkInterval = /** @type {any} */ (setInterval(() => {
Expand Down Expand Up @@ -320,7 +320,7 @@ export class WebsocketProvider extends Observable {
if (typeof window !== 'undefined') {
window.removeEventListener('beforeunload', this._beforeUnloadHandler)
} else if (typeof process !== 'undefined') {
process.off('exit', () => this._beforeUnloadHandler)
process.off('exit', this._beforeUnloadHandler)
}
this.awareness.off('update', this._awarenessUpdateHandler)
this.doc.off('update', this._updateHandler)
Expand Down