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

Message on disconnect?

$
0
0
Hello!

I'm using Photon Self-Hosted and had a question. When I disconnect a peer, is there a way to send a message to that client about why they are being disconnected? Failing that, is there a good way to make sure we've flushed a specific Event or Object and that the client has received it?

I'm seeing that if I send an Event or Object over, they may not get there until the disconnect happens, and sometimes won't get there at all. I have tried calling Flush() but that doesn't seem to make a difference. If I send the payload, then wait a half second, then disconnect, that seems to work, but even that can be unreliable depending on latency.

Thanks!

Viewing all articles
Browse latest Browse all 1557

Trending Articles