voryx / Thruway

PHP Client and Router Library for Autobahn and WAMP (Web Application Messaging Protocol) for Real-Time Application Messaging
MIT License
674 stars 117 forks source link

What arguments are passed to connection on('open')? #322

Closed M1ke closed 4 years ago

M1ke commented 5 years ago

When running $connection->on('open') the second argument is a callback. The first argument of this is a ClientSession - are there any other arguments passed and what are their specifications? I tried to find this out by reading the code but it's just the evenement wrapper, and doing var_dump(func_get_args()) inside it is too much information to parse.

Thanks!

mbonneau commented 5 years ago

Here is where this event is emitted: https://github.com/thruway/client/blob/532604ab58de1e271a368dae406685566c539c87/src/Peer/Client.php#L356

M1ke commented 4 years ago

Sorry for my lack of response and thanks for the pointer.