Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

how to intercept Operations in plugin code?

$
0
0
Hi all and thanks for advice!

I am extending LoadBalancing with a plugin, using self-hosted v4 running on machines at home, and clients running PUN2. Clients are sending PhotonNetwork.RaiseEvent to the server.

Just a bit confused about how to get my plugin to intercept the operations. I understand there is an interface I must implement, I think it's the IOperationHandler, is this correct? Can I add this on the plugin class as MyPluginClass : PluginBase, IOperationHandler? Or maybe I am not understanding something important. Just want to be sure how it works and how it should look. Thank you :)

Viewing all articles
Browse latest Browse all 1557

Trending Articles