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

Photon Server Chat Tutorial - weird issue

$
0
0
Hi,
I'm looking into Photon Server.. I'm following the chat tutorial:
https://doc.photonengine.com/en-us/onpremise/current/app-framework/an-app-from-scratch

I'm stuck on a weird issue on the last step where you need to add the broadcast using C# events.
If I add the line "BroadcastMessage += OnBroadcastMessage;" (subscribing to the event) in the ChatPeer constructor the client can no longer connect to the server.



If I comment it out I can connect and receive the response (not the broadcast obviously):



Any help?

Thanks ahead,
Michael.

Viewing all articles
Browse latest Browse all 1557