Skip to content

docs: document socket ID retrieval for broadcast()->toOthers() with framework adapters#11201

Draft
hectorgrecco wants to merge 1 commit into
laravel:13.xfrom
hectorgrecco:add-use-socket-id
Draft

docs: document socket ID retrieval for broadcast()->toOthers() with framework adapters#11201
hectorgrecco wants to merge 1 commit into
laravel:13.xfrom
hectorgrecco:add-use-socket-id

Conversation

@hectorgrecco
Copy link
Copy Markdown

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 exported echo() helper, for interceptor setup and outside-component usage
  • useSocketId() reactive hook/composable/rune for inside-component usage, with examples for all three adapters

Related

@taylorotwell taylorotwell marked this pull request as draft May 14, 2026 17:57
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.

1 participant