Clearing Buffered RPCs

Options
Hi, I have sent multiple RPCs (AllBufferedViaServer) and I wanted to know as to when they are cleared from server? Or Is there any way to clear them using some function from masterclient as per my need?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @roshaan,

    By default (RoomOptions.CleanupCacheOnLeave = true) buffered RPCs are cleared when the player leaves the room for good.
    You can manually clear buffered RPCs of course using some methods.
    PhotonNetwork.OpCleanActorRpcBuffer (int actorNumber)
    PhotonNetwork.CleanRpcBufferIfMine (PhotonView view)
    PhotonNetwork.OpCleanRpcBuffer (PhotonView view)
    for cached events in general:
    PhotonNetwork.OpRemoveCompleteCacheOfPlayer (int actorNumber)
    PhotonNetwork.OpRemoveCompleteCache()