Skip to content
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

feat: add enableAwareness option #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

EastSun5566
Copy link
Contributor

@EastSun5566 EastSun5566 commented Jan 22, 2025

Description

Add the ability to disable awareness functionality on both client and server side. Default is enabled.

Usage

Client-side:

const provider = new SocketIOProvider(url, roomName, doc, {
  enableAwareness: false
})

Server-side:

const server = await registerYSocketIOServer(io, store, {
	...otherOptions,
  	enableAwareness: false 
})

@EastSun5566 EastSun5566 self-assigned this Jan 22, 2025
@EastSun5566 EastSun5566 marked this pull request as ready for review January 22, 2025 15:38
@galaxian85 galaxian85 force-pushed the feat/add-enable-awareness-options branch from b20e1bc to a13c93e Compare January 23, 2025 06:53
@galaxian85
Copy link
Collaborator

@EastSun5566 請假,我幫他解 conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants