docs: document socket ID retrieval for broadcast()->toOthers() with framework adapters#11201
Draft
hectorgrecco wants to merge 1 commit into
Draft
docs: document socket ID retrieval for broadcast()->toOthers() with framework adapters#11201hectorgrecco wants to merge 1 commit into
hectorgrecco wants to merge 1 commit into
Conversation
…ramework adapters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the existing "Only To Others - Configuration" section to document how to retrieve the socket ID when using the framework adapter packages (
@laravel/echo-react,@laravel/echo-vue,@laravel/echo-svelte).Previously, this section only showed the vanilla Echo approach (
Echo.socketId()), leaving framework adapter users without guidance — which led to confusion and workarounds (see laravel/echo#474).What's added
echo().socketId()via the exportedecho()helper, for interceptor setup and outside-component usageuseSocketId()reactive hook/composable/rune for inside-component usage, with examples for all three adaptersRelated
useSocketId()hook itself)