Since we now have a way to deal with WebSockets in PHP/Laravel, I was wondering if we could extend the functionalities of Laravel Echo a bit more than the current API to actually use the bi-directional capabilities of WebSockets.
This gist is a draft of what it would be to use this extension.
Right now we can authenticate on private/presence channels. It's also possible to send client-side events in these channels using this API:
const channel = Echo.private(`chatroom.${this.chatroom.id}`);