This PR re-orders the Session#push and Channel#broadcast methods to always have the event data first and event name as an optional second argument. In addition, it also allows the user to set a custom event ID as an optional third argument to the Session#push method and adds a new push event emitted by Session after the Session#push method is called.
This PR re-orders the
Session#push
andChannel#broadcast
methods to always have the event data first and event name as an optional second argument. In addition, it also allows the user to set a custom event ID as an optional third argument to theSession#push
method and adds a newpush
event emitted bySession
after theSession#push
method is called.