method

request

request()
private

The request that initiated the WebSocket connection is available here. This gives access to the environment, cookies, etc.