Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Oddman's avatar

Oddman liked a comment+100 XP

2mos ago

Echo: how to emit a Laravel event through the WebSocket?

Why not? If a WebSocket connection is already established, auth is already passed sending messages in both directions is a logical step. Furthermore, it's much more efficient.

So currently, WebSocket uses 50% of its power. Laravel might use Server-Side Events with the same result.