This is an example of how to check a Laravel request for a valid session within Node.js/Socket.io