Dear PlayFab community,
I never know whether I need to submit a new post for an ongoing issue. The threading capabilities of these Forums are confusing.
I had an issue with Photon WebHooks earlier today, and have fixed the underlying issue with writing events.
However, when I create a room, join a room, and leave a room -- only the photon_room_left event is getting written. The other two must have an error or are not getting invoked?
Is there any way for me to look at these logs?
Thanks for any help anyone can provide!
Here's the current WebHook code with a verified WritePlayerEvent function:
interface IPhotonResult { ResultCode: number, Message: string } const photonSuccess: IPhotonResult = { ResultCode: 0, Message: 'Success' }; function returnSuccess(eventName: string, args: any) { WritePlayerEvent(eventName, {Arguments: args}); return photonSuccess; } var RoomCreated = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_room_created", args); } var RoomClosed = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_room_closed", args); } var RoomJoined = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_room_joined", args); } var RoomLeft = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_room_left", args); } var RoomEventRaised = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_room_event_raised", args); } var RoomPropertyUpdated = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_room_event_raised", args); } var WebRPCTest = function(args: any, context?: IPlayFabContext): IPhotonResult { return returnSuccess("photon_webrpc_test", args); } handlers["roomCreated"] = RoomCreated; handlers["roomClosed"] = RoomClosed; handlers["roomJoined"] = RoomJoined; handlers["roomLeft"] = RoomLeft; handlers["roomEventRaised"] = RoomEventRaised; handlers["roomPropertyUpdated"] = RoomPropertyUpdated; handlers["webRPCTest"] = WebRPCTest;