dimanche 27 septembre 2015

Laravel + WebSockets (Ratchet) Session

I have this working: http://ift.tt/1eEnl4v

But I'm not clear on how to check permissions on a user before allowing them to subscribe to a particular channel. I can see the laravel_session cookie in the request, but I don't know how or where to build the session object.

I'm happy to use file or database-based permissions. I'm open to memcache or redis, but I've never tried those before.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire