Skip to content

Tag: socket.io

Laravel Broadcast authentication

How do I authenticate an user to a channel with a custom auth method? For example, in my app I use a token auth (stored in the db for each user) for my API, passed via header and read by a custom middleware. How do I control the access with these custom auth methods for channels? How would be the