Skip to content

docs(api-plugin): update server-to-client exampel#12182

Merged
patak-cat merged 1 commit intomainfrom
docs-server-send
Feb 24, 2023
Merged

docs(api-plugin): update server-to-client exampel#12182
patak-cat merged 1 commit intomainfrom
docs-server-send

Conversation

@bluwy
Copy link
Member

@bluwy bluwy commented Feb 24, 2023

Description

fix #9019

example: https://stackblitz.com/edit/vitejs-vite-m1ub6n?file=vite.config.js&terminal=dev

Make sure clients are connected first before calling server.ws.send, otherwise there's no clients connected to send the message too.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@bluwy bluwy added the documentation Improvements or additions to documentation label Feb 24, 2023
@patak-cat patak-cat merged commit 7b9df65 into main Feb 24, 2023
@patak-cat patak-cat deleted the docs-server-send branch February 24, 2023 08:45
futurGH pushed a commit to futurGH/vite that referenced this pull request Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: vite-Server-to-Client

2 participants