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

When to broadcast an event and when to use a peer fiber

$
0
0
Hey guys,

I'm struggling to get my head around when I should be using the Application.broadcast method against the PeerBase.sendEvent method. I understand that broadcasting avoids a peers fiber, but I'm struggling to work out when I would actually need to use the peers fiber at all. Im currently considering having all events broadcast, and handle the pooling/timing separately.

Any advice would be greatly appreciated.

Viewing all articles
Browse latest Browse all 1557

Trending Articles