Quantcast
Channel: JavaScript and TypeScript — Photon Engine
Viewing all articles
Browse latest Browse all 162

how to receive custom events?

$
0
0
In the C# client, I just implement IPhotonPeerListener.OnEvent( EventData eventData ) and my custom events work fine. Not the case in the JS api...

Looking at the JS API docs, all the methods for adding event handlers take a string "name" as the 1st parameter. What if it's a custom event code (byte) ?

Not using Lite, by the way.

Viewing all articles
Browse latest Browse all 162

Trending Articles