Hi Robert,
I hope I understood you well...
1 - You attach the VideoRoom plugin
2 - You join the room with join request.
Now you are able to receive events in onmessage callback.
you are not publisher or receiver, you are someone in the room, and you receive events.
' You need to be a publisher to receive events'
Maybe you are confused with the fact that you do not get list of room participants (like audiobridge), you only get a list of publishers when someone publish.
So when someone publish, all joined participants will be notified with new publisher, but when someone joined the video room nothing happens in onmessage callback.
Maybe it is good to be notified about join event, but what you need is the publishers to view their cams, you have nothing to do with video room users who are not publishing...
Also, I closed the publisher page for test, room participants got unpublish event and then new publishers list received for all.
Joining the room again will surely create new session, you need to maintain that with application level help,
For me I use list of logged in users from application layer, I set the display field when user join videoroom to be identifier that matches the application user ID, simple loop in videoroom publishers I can identify the users regardless his session ID change, then you can re-connect again.