
Photon C# Client Library - Changelog
www.photonengine.com  -  Join our Discord Server: https://dashboard.photonengine.com/account/profile


Version 5.1.15 (15. July 2026)
    Updated: Internal locking for critical sections of the de/serialization and message handling. This fixes some rare issues but it was also possible to optimize existing locking.
    Note: Outgoing ACKs are generated at receive time, so this doesn't delay them. ACK side-effects stay on the send thread, where resends/send-window already lived.
    Removed: EnetChannel.reliableCommandsInFlight. It was buggy (never decremented on the ACK2) and redundant with thesentReliableCommands scan.
    Changed: Split incoming ACKs from data commands in EnetPeer. New AckQueue for incoming ACKs is drained in SendOutgoingCommands. CommandQueue executed only on dispatch.
    Fixed: SendOutgoingCommands() to queue the Disconnect()-call in case of client timeout and to not send in Zombie state (client detected timeout but did not disconnect yet).
    Note: Timeout teardown now completes on the dispatch thread.
    Changed: Tcp IncomingList now stores IncomingMessages, which also keep the time of arrival.
    Changed: Received Ping operations (WS/WSS) will now queue like anything else. The arrival time avoids local lag for the rtt.
    Changed: Incoming list is now cleared by dequeueing each message and pooling it again (it no longer needs GC).
    Removed: Shared buffer for TCP ping. This is now lock-free and allocation-free (writes into the pooled buffer it's about to enqueue).
    Changed: outgoingStream: List<StreamBuffer> to Queue<StreamBuffer>. The blocking send no longer holds outgoingStream, so an enqueueing thread on another thread is never stalled by a slow/back-pressured send.
    Changed: Enet command pooling. On disconnect, commands are also all returned to pools. This automatically returns and pooled payload buffers to their pool as well.
    Changed: TCP handling of late arriving messages and network simulation. 
    Fixed: WebSocket case where full send buffers (on the socket) could cause more memory allocations, as internal buffers were not released to the pool.
    Added: TPeer.pendingSendBuffer to temporarily store a buffer until the next send happens. Released when sending becomes possible again.
    Fixed: DatagramEncryptedConnection bool could flip mid-datagram-assembly (causing a single "0" command to be sent).
    Changed: Remaining size will now be checked when writing ACK2s. If there are a lot of channels (and loss) there might be more ACK2s than remaining space in a package. This keeps the remaining ACK2s for next package.
    Fixed: (Obsolete) SentReliableCommandsCount, which was accessing Stats.UdpReliableCommandsInFlight. You want to use the Stats directly but this was simply wrong.

Version 5.1.14 (29. Mai 2026 - sha 81dc467)
    Updated: SocketUdp ignores most non-fatal UDP Socket errors.
    Updated: SocketUdp sets it's photonSocket.SocketErrorCode for sending and receiving errors (if available).
    Updated: SocketWebTcp handling of errors for WebSocket-sharp (non JavaScript / WebGL builds). While connected, all fatal errors are followed by OnClose. Errors while connecting are still treated as fatal (as there is no OnClose callback then).
    Changed: PhotonClientWebSocket Send() and Disconnect() now switch SynchronizationContext when using ClientWebSocket (and return to the context after async calls).
    Note: PhotonClientWebSocket SocketErrorCode is set to either the ws.CloseStatus or ws.State. For UDP sockets, it is the SocketException.SocketErrorCode.
    Changed: CountDiscarded now counts reliable sequenced commands if the incoming one is older than dispatched. This is only a counter for such cases for debugging / analytics.
    Fixed: Closing of sockets that could not be connected to (in case a host name resolves to more than one IP in SocketUdp).
    Fixed: Potential NullReference Exception in SocketUdp.Send(), if the socket closes (so it was not a relevant error case).
    Updated: SocketUdpAsync to avoid allocations and to also ignore socket error codes which point out temporary issues. This class is now closer to what the SocketUdp class does (which is used by default).
    Fixed: SocketUdpAsync was shutting down the connection if a message was too large. This is not simply skipped (analog to SocketUdp).
    Note: Skipping release of v5.1.13 which was used in preview builds.

Version 5.1.12 (01. April 2026 - rev8344)
    Fixed: Potential divide by zero exception in TrafficStatsDelta.ToString().

Version 5.1.11 (30. March 2026 - rev8336)
    Fixed: SendPing() for TCP specifically (in Photon dll). This showed as ever-increasing roundtrip times for TCP, even for good connections. Ping messages were accidentally queued with updating a header, which they do not use.

Version 5.1.10 (24. February 2026 - rev8290)
    Fixed: ReadInt64() in Protocol18Read.cs. It was fetching 4 bytes instead of expected 8.
    Changed: EnetPeer.Disconnect() to change the state earlier. To create the Disconnect command (for the server), it stores the previous state and passes that into NCommand Intialize now.
    Added: Lock for EnetPeer.SendOutgoingCommands(). Everything that accesses the datagram while it's written, will be in that lock, preventing concurrency.
    Added: Lock for Socket.Send(). With the network simulation, it's possible that there is more than one thread sending.
    Changed: RTT and Variance values to float to get more precise values when the connection is really stable (low variance).
    Added: Rtt variance minimum and maximum values to tweak resending of commands. A minimal variance value prevents excessive resending of commands when there is little variance.
    Added: PhotonSocket.LogLevel property. It wraps the access to this.peerBase.LogLevel and allows use of that in inheriting classes. (This does not modify how / where the log level is stored, it just provides access.)
    Changed: EnetPeer.ReceiveIncomingCommands() to first write any acks / track received commands, then hand if off into the processing queue. It was possible that commands got processed on another thread (from said queue) before the acknowledgement was finally written. Leading to invalid tracking of commands (and likely a ServerTimeout).
    Changed: EnetPeer.peerConnectionState is now a property which uses Interlocked methods for atomic updates and checks. See peerConnectionState and TryUpdateConnectionState.
    Added: ConnectionStateValue.ConnectingHandleVerifyConnect to have a short-lived state which is used while the init request is being written and queued (avoids surplus init requests).
    Updated: Comments for CT_VERIFYCONNECT in ExecuteCommand().
    Fixed: EnetPeer.CreateAndEnqueueCommand() now locks the channel if a range of fragments needs to be sent. This should prevent other commands from being written to the channel concurrently (which in turn would mess with the sequence numbering), fixing a problem where the first fragment's sequence number was not matching the "first fragment" value.
    Changed: PhotonPeer.EstablishEncryption() now passes the enqueueLock object for locking. This is the correct lock-object, as opposed to the sendOutgoingLockObject (which is for send calls done by the game logic/realtime).
    Added: Check for payload size when initializing an NCommand from a byte-buffer coming from the network.
    Changed: PhotonPeer.UseAck2. If ACK2 isn't compiled into the library, it can not be set and is always false. If it's compiled in, it can be set to true.
    Note: ACK2 can only be used on recent server builds, which have the related feature flag, which is then stored in PhotonPeer.IsAck2Available.
    Changed: The return string of VitalStatsToString() to streamline it.
    Fixed: A minor pooling issue, which meant incoming ACK2 commands were lost instead of returning to the pool (so this allocated memory despite using the pool).
    Removed: ITrafficRecorder.Flush() and ITrafficRecorder.Enabled. A recorder is always running while assigned to a peer and can be "flushed" there. New Traffic Recording sample code can be provided on demand.
    Fixed: If a WS/WSS connection uses a operation Ping result as "init response" (workaround for a rare websocket problem), this now queues the OnInitResponse call to put it on the main / dispatch thread.

Version 5.1.9 (10. November 2025 - rev8156)
    Changed:  Unity defaults to using the PhotonClient.dll release builds. Add PHOTON_LIBS_DEBUG to your project to use the debug builds. PHOTON_LIBS_RELEASE is no longer used.
    Added: PhotonPeer.SimulateTimeoutDisconnect() to immediately trigger a local timeout-disconnect (without informing the server) for debug purposes. This is only implemented in the debug builds of the PhotonClient dll.
    Added: TrafficStats.UdpUnreliableCommandsSent to provide a count of unreliable commands, too.
    Changed: TrafficStatsDelta values RoundtripTime, RoundtripTimeVariance and LastRoundtripTime now reflect the difference between the "now" and "reference" traffic stats, when you create a TrafficStatsDelta between two snapshots. This shows how these values changed.
    Changed: Some formatting within the TrafficStats classes to make the numbers better readable.
    Changed: Log output in VitalStatsToString() to show kB and kB/sec and changed to number formatting with dots for thousands.
    Changed: Datagram Encryption.
    Added: IPhotonEncryptor.LogLevel int. This is a (minor) breaking change to allow setting the log level for the Datagram Encryption native library (not in SDKs but provided on demand). Requires an update of DatagramEncryptorNative.cs, which is typically available in source.
    Changed: Error handling and logging in PhotonPeer.InitDatagramEncryption(). It now disconnects the client with a respective status callback (in case there is no Datagram Encryption implementation, etc.).
    Fixed: When using Datagram Encryption, outgoing bytes and datagrams were not counted. This required a minimal change on where these are counted. Internally changed where outoing bytes and datagrams are counted.
    Fixed: Sequence limiting in SerializeToBuffer(). Non-fragmented commands were never limited because their startSequenceNumber is always 0 and below the limit.
    Note: Commands are not sent if their sequence number is larger than the limit to avoid sending commands that are unlikely to be queued and acknowledged.
    Internal: ApplySequenceNumberModifier() applies the sequence number randomization of GCM to the various values in a channel (some parts were done in EnetPeer).
    Added: "ReliableSendWindowFeatureFlag" which asks the server to send the length of its reliable receive buffer. This helps avoid sending reliable commands which would get ignored for being out of the reliable buffers.
    Changed: Reading of VerifyConnect command to read the new Feature Flag and (if provided) the servers serverMaxQueueableReliableCommands. The client may adjust it's SendWindowSize to the server's value.
    Changed: Resending.
    Changed: There are now 15 resends allowed, which means more attempts to pass through a bad network.
    Changed: Default QuickResendAttempts = 2.
    Changed: The resend-time per command is being capped via the InitialResendTimeMax * 2 (currently == 800ms). This means more attempts in the time we got.
    Internal: QUICK_RESEND_QUEUELIMIT = 50 (was 25). This is a better initial send window to use the server's reliable incoming queue.
    Fixed: Logging for "Command was received before!" in QueueIncomingCommand().
    Changed: Error handling for WSAENOBUFS "No buffer space available" and WSAEMSGSIZE "Message too long." to just skip over these. These should be temporary and anything reliable would be re-sent. These will no longer end a connection but log on INFO level.
    Changed: QueueSentCommand() check of QuickResendAttempts. As the first resend has "quick" timing, QuickResendAttempts now has a minimum value of 1.
    Changed: QuickResendAttempts are now in the range of 1 - 4 and default to 2.
    Updated: Reference for QuickResendAttempts and MaxResends (and obsolete SentCountAllowance).

Version 5.1.8 (25. August 2025 - rev8056)
    Changed: Protocol 1.8. iteration over PhotonHashtable entries to achieve non-alloc serialization for the container.

Version 5.1.7 (31. July 2025 - rev8015)
    Added: FeatureFlags for UDP connections to communicate which features a client / server has.
    Added: PhotonPeer.UseAck2. While available in all new builds, the feature is not built into the client yet. When built into the client, it will check the server's FeatureFlags before enabling it per connection.
    Changed: CT_VERIFYCONNECT reading. Currently, the feature flag value is directly set on the peer (not entirely "correct" as it should possibly do it when handling verify connect).
    Added: Obsolete property DebugOut to allow a little easier migration from v4 to v5.

Version 5.1.6 (01. July 2025 - rev7991)
    Added: SupportClass overload for CalculateCrc() with offset.
    Changed: CalculateCrc() without offset is now obsolete.
    Internal: Worked on sequential acknowledgements (a.k.a. ACK2). Some refactoring and internal implentation details apply to all command handling, even if this feature is not released yet.
    Changed: Send Window in SerializeToBuffer(). If a fragment's start-sequence number is inside the Send Window, related fragments can be sent.
    Changed: Channel outgoingReliableCommandsList and outgoingUnreliableCommandsList are now of type List<NCommand>. Allows skip over individual entries.
    Added: PeerBase.bestRoundtripTimeout to track the session's best resend-timeout.
    Added: PeerBase.throttledBySendWindow debug value to count how often reliable sequenced commands are not sent due to lacking acknowledgements.
    Added: PeerBase.rttVarString property to provide a formatted rtt/variance string. This is updated on access.
    Changed: EnetPeer SendWindow is only applied to sequenced reliable commands. It does not apply to unsequenced reliable commands, because the server has a longer queue for those.

Version 5.1.5 (24. April 2025 - rev7920)
    Fixed: Bug in QueueIncomingCommand() which allowed duplicates of commands being queued. This affected fragment reassembly, leading to exceptions and disconnects. This bug has been in v5.1.3 and v5.1.4.

Version 5.1.4 (10. April 2025 - rev7900)
    Changed: WebSocket implementation for Unity WebGL/JS. It is compatible with Unity 6, Emscripten 2023 and C/C++ Threading support. This makes the WebSocket.jslib require Unity 2021.3.x or newer. Mail us to get support for older Unity versions if necessary.
    Removed: Internally outdated call of OnConnect() from the WebGL SocketWebTcp implementation.
    Changed: Internally used classes from namespace Photon.Client.Security are moved to Photon.Client.Encryption.
    Fixed: Handling of unsequenced reliable commands in QueueIncomingCommand().

Version 5.1.3 (06. March 2025 - rev7864)
    Changed: WebSocket implementation for Unity WebGL/JS exports and WebSocket-sharp based implementation (in PhotonLibs\WebSocket\).
    Note: The goal is to process incoming messages in WebGL (and with WebSocket-sharp) more directly. This specifically helps the Voice SDK on WebGL to process the stream while in background.
    Changed: WebSocketTcp and WebSocket to receive incoming messages via callbacks. At the same time our WebSocket code now also implements all typical callbacks for WS/WSS.
    Changed: WebSocket.jslib replicates "standard" JS websocket methods and callbacks in its interface instead of caching messages for polling.
    Changed: PreserveAttribute in SupportClass.cs is now public, so it can be used in WebSocket code as needs be.

Version 5.1.2 (19. November 2024 - rev7770)
    Fixed: Some allocations that can be avoided. For example the EventData.Sender is no longer allocating anything, if the Sender of an event was not set (it is considered ActorNumber 0).

Version 5.1.1 (22. Oktober 2024 - rev7739)
    Changed: Internal TryParseAddress method, which failed for URLs without a port. This did not work well with the Realtime API's AddressRewriter and URLs for Discord Activities (which typically use a scheme but not a port).

Version 5.1.0 (01. Oktober 2024 - rev7714)
    Added: Folders "debug" and "release" in "PhotonLibs\netstandard2.0\" for Unity SDKs. There are compile constraints on the dlls to make "debug" the default. Define "PHOTON_LIBS_RELEASE" for your project to select the release dlls.
    Note: The difference between debug and release dlls is minimal. Performance may be a bit better in the release builds. The feature "Network Simulation" is only available in the debug builds to prevent accidental release with it.
    Changed: Release build of dll can now capture the traffic.
    Internal: Removed NETFX_CORE compile defines mostly.
    Updated: WebSocket for WebGL exports (WebSocket\WebSocket.jslib) to support Unity's (experimental) option to "Enable Native C/C++ Multithreading".
    Added: Debugger attributes to improve debug view for classes ParameterDictionary, NonAllocDictionary and Node.

Version 5.0.11 (28. August 2024 - rev7655)
    No notable changes.

Version 5.0.10 (10 July 2024 - rev7627)
    Fixed: SendAcksOnly() for TCP and WS/WSS. It now sends a ping immediately to actually keep the connection up if SendOutgoingCommands() is not called for longer (e.g. when PUN IsMessageQueueRunning is false).
    Note: The above issue was introduced 8. May 2024, rev7552. So v5.0.8. and v5.0.9 would time out for TCP or WebSockets, if SendOutgoingCommands() was paused longer.
    Internal: TPeer.SendPing() to have an optional parameter to send the ping immediately. This allows SendAcksOnly to send it without sending anything queued.
    Internal: TPeer.Reset() to also update lastPingActivity.

Version 5.0.9 (26. June 2024 - rev7603)
    Fixed: De/serialization when using struct-based Custom Types (e.g. Fusion's NetworkId).
    Renamed: TrafficStatsSnapshot.SnapshotTimeStamp to SnapshotTimestamp with lowercase "stamp". Obsolete version is in place to avoid renaming trouble.

Version 5.0.8 (27. May 2024 - rev7574)
    No notable changes.

Version 5.0.7 (16. May 2024 - rev7565)
    Changed: TPeer.SendPing() will now enqueue the message instead of sending it immmediately. This makes sure a ping is never sent as first message (which has to be an Init).
    Changed: To re-using a ParameterDictionary for pinging in WS / WSS.
    Internal: Removed support for Native Datagram Encryptor v1. Removed related NATIVE_ENCRYPTOR_API1 define.
    Changed: InitDatagramEncryption() now has one obsolete variant. Randomizing sequence numbers and using Chain Mode GCM are now mandatory. PhotonPeer.GcmDatagramEncryption as it is no longer optional. Note: An update of the Realtime API covers this change.
    Changed: The EnetPeer NCommandPool is now a Pool<NCommand>. This avoids having another pooling class, just for NCommands.
    Removed: NCommand.Release() which was returning the command to a pool.NCommands no longer refer to some pool they should return to.
    Changed: NCommand creation and initialization to fit using Pool<NCommand>. This is now done in a few separate steps.
    Changed: CommandQueue is now a ConcurrentQueue<NCommand> to avoid manual locking. The receive thread writes to it, others read.
    Changed: ReceiveIncomingCommands no longer executes ACKs immediately on the receive thread.
    Changed: Due to queueing ACKs, the CommandQueue must be executed in SendOutgoingCommands (to avoid resends due to not executed ACKs).
    Internal: Added NCommand.TimeOfReceive to track when a command came in. Keeps roundtrip time useful, even if with infrequent dispatch.

Version 5.0.6 (02. May 2024 - rev7543)
    Internal: Removed surplus optional code to debug command pooling.
    Internal: Simplified SendAcksOnly and SendOutgoingCommands. Removed duplication of code.
    Changed: SendAcksOnly() no longer counts via SendOutgoingCommandsCalled(). It no longer sets the Stats.LastSendOutgoingTimestamp.
    Changed: SendOutgoingCommands(bool) to set Stats.LastSendOutgoingTimestamp only if not using sendAcksOnly = true.
    Changed: datagramEncryptedConnection is now thread safe, using Interlocked. Added property for this: SendWindowUpdateRequired.
    Removed: Locks on the udpBuffer. Obsolete due to datagramEncryptedConnection becoming thread safe.
    Removed: SendOutgoingCommands() use of a "lock (this.udpBuffer)". The method is locked in the PhotonPeer and the buffer itself does not need additional locking.

Version 5.0.5 (29. April 2024 - rev7531)
    Changed: SendAcksOnly and SendOutgoingCommands will return true (which means "more to send") when any resends did not fit into the current datagram. This usually causes another call to send them in another datagram.
    Changed: Stats.UdpReliableCommandsResent is only increased, when the resent command actually fit into a datagram, which makes this value more precise.

Version 5.0.4 (19. April 2024 - rev7511)
    Changed: Sending of reliable commands. There is now a "Send Window" which limits how many reliable commands are being sent, based off the lowest sent sequence number, only the next XY sequence numbers can be sent. This moves with incoming acknowledgements. This avoids spamming the server, which caused resends.
    Note: Per channel, the Send Window indirectly affects unreliable and even unsequenced commands by ending the sending for a channel early. Use a separate channel (higher number) for larger chunks of data to avoid related lag.
    Renamed: PhotonPeer.SequenceDeltaLimitSends to SendWindowSize.
    Removed: PhotonPeer.SequenceDeltaLimitResends. If a reliable command needs re-sending, it is something the server is waiting for, so we just send.
    Changed: Stats.UdpReliableCommandsSent is increased only on the initial send of a command (excluding resends).
    Changed: Stats.UdpFragmentsIn is increased only for new/unique receives of fragments (excluding resends from remote).

Version 5.0.3 (25. March 2024 - rev7477)
    Changed: Statistics handling for the PhotonPeer and connections. Several values moved to the PhotonPeer.Stats (e.g. PeerBase.BytesIn, .BytesOut and PeerBase.timestampOfLastReceive).
    Removed: PhotonPeer.TrafficStatsEnabled. The stats are simplified and it should not be necessary to check a bool to avoid setting some.
    Removed: Separate instance for In and Out values.
    Removed: Traffic stats counting and handling in various internal places.
    Note: Simpler for UDP now, as it just counts the complete UDP payload as passed to ReceiveIncomingCommands(). This was scattered around.
    Changed: Use TrafficStats.ToSnapshot() to create a TrafficStatsSnapshot. This contains current values and the timestamp. TrafficStatsSnapshots can be compared to other snapshots and the current TrafficStats, providing you with a TrafficStatsDelta instance. This should be useful to get an idea of how things changed between both timestamps.
    Changed: All dispatch callbacks now make use of Stats.DurationOfLastDispatchCallback instead of having individual values.
    Changed: PhotonPeer.VitalStatsToString() to focus on important values and make them always available.
    Changed: WebSocket paths now include a peerID field and a client-generated "ID" (which is not entirely unique but doesn't have to be). Also, it adds "_" and the connection-count (prepareWebSocketUrlCount).
    Changed: WebSocket paths are built with a re-used StringBuilder and only ever contain the first 8 characters of an AppId (unless suppressed entirely).
    Changed: OperationResponse.ToString() includes the DebugMessage (unless empty).

Version 5.0.2 (01. February 2024 - rev7373)
    Changed: PhotonClientWebSocket will now set the SocketErrorCode to clientWebSocket.CloseStatus if the WebSocket fails to go into "open" state.
    Changed: Logging for this case to include a description (which might be empty).

Version 5.0.1 (07. December 2023 - rev7261)
    No notable changes.

Version 5.0.0 (09. November 2023 - rev7225)
    Changed: To semantic versioning with 3 digits only.
    Removed: Support for .Net 3.5. From 5.x on we use .Net Standard 2.0 as minimum.
    Changed: To a newer Unity version define (#if UNITY_2017_4_OR_NEWER).
    Changed: Handling of incorrect stream data.
    Breaking: DLLs for Unity will no longer use a custom Hashtable re-implementation. Remove all defines which Hashtable to use (using Hashtable = ExitGames.Client.Photon.Hashtable;).

    Merged changes of Version 4.1.6.24 (11. May 2023 - rev6888)
    Changed: PhotonClientWebSocket.Send() will now Wait up to 3ms for the Send-Task before it returns "busy". This allows the task to complete and the TPeer can send multiple messages until it send MTU bytes. That avoids increasing lag, if the game logic calls SendOutgoingCommands() sparingly.
    Changed: PeerBase.Reset() will now also clear the ActionQueue.
    Fixed: WebSocket connection issues where clients never get into a Connected state. This is a workaround for cases where a WebSocket bug skips the callback for the Init Response from the server. This is a rare issue which does not reproduce 100% of the time.
    Changed: WebSocket connections will now send pings in one second intervals as long as the WebSocket is connected (and the peerConnectionState is not Disconnected).
    Changed: If a ping result arrives while the peer is still Connecting, it is used as Init Response on WebSocket connections.
    Changed: TPeer.FetchServerTimestamp() to only log something (INFO level) if the peer is not connected and initialized yet. FetchServerTimestamp can be repeated and does not need a SendError callback.
    Changed: PhotonClientWebSocket.Disconnect() to call CloseAsync() if the WebSocket is already in state CloseReceived. This should just close the socket locally.


---


Version 4.1.8.4 (26. April 2024 - rev7530)
    Changed: SendAcksOnly and SendOutgoingCommands logging (they only log successful re-sends).
    Changed: In QueueSentCommand the reliableCommandsSent is increased only for commands that are sent the first time (not counting repeats anymore).

Version 4.1.8.3 (24. April 2024 - rev7519)
    Changed: Sending of reliable commands. There is now a "Send Window" which limits how many reliable commands are being sent, based off the lowest sent sequence number, only the next XY sequence numbers can be sent. This moves with incoming acknowledgements. This avoids spamming the server, which caused resends.
    Note: Per channel, the Send Window indirectly affects unreliable and even unsequenced commands by ending the sending for a channel early. Use a separate channel (higher number) for larger chunks of data to avoid related lag.
    Renamed: PhotonPeer.SequenceDeltaLimitSends to SendWindowSize.
    Removed: PhotonPeer.SequenceDeltaLimitResends. If a reliable command needs re-sending, it is something the server is waiting for, so we just send.
    Changed: Resending of commands (UDP). SendOutgoingCommands now makes sure to return true if any of the resends does not fit in the current datagram. Internally, the next check for resends is scheduled "immediately".

Version 4.1.8.2 (25. March 2024 - rev7471)
    Added: PhotonLibs\WebSocket\PhotonWebSocket.asmdef, which wraps up the code and dlls for WebGL exports. This is auto referenced.

Version 4.1.8.1 (12. March 2024 - rev7444)
    Fixed: SocketTcp which was reading the wrong TCP Header byte as "reliable" indicator. This meant, the TrafficStatsIncoming were wrong.

Version 4.1.8.0 (31. January 2024 - rev7364)
    No notable changes. The Realtime API has some breaking changes. Check that changelog.

Version 4.1.7.4 (13. December 2023 - rev7284)
    Fixed: PhotonPeer.BytesOut internal counting.

Version 4.1.7.3 (07. December 2023 - rev7252)
    No notable changes.

Version 4.1.7.2 (20. September 2023 - rev7218)
    Fixed: DisconnectTimeout is no longer capped. You can set any value client side. Server side timeouts can only be set for Self Hosted or Enterprise Server.

Version 4.1.7.1 (06. September 2023 - rev7148)
    Fixed: Internal state changes to report UDP based Client Timeouts to the server.

Version 4.1.7.0 (18. August 2023 - rev7111)
    Added: PhotonPeer.SocketErrorCode (int) to provide the low level error code (relevant when the connection gets lost).
    Changed: SocketUdp to report WouldBlock exceptions as "busy". The handling code could use this to not try send anything else in this loop.
    Added: Preserve attribute to SocketWebTcp constructor to keep Unity from stripping it from builds.

Version 4.1.6.26 (09. August 2023 - rev7076)
    Fixed: PhotonClientWebSocket.Send() waits up to 5ms after sending async to allow the message being written to the network layer.
    Fixed: PhotonClientWebSocket.Send() now provides a distinct return code if the WebSocket did not yet finish sending the data. In that case, the memory which was used for it, is not returned to the pooling. This can cause allocations but fixes cases where messages were modified after they were considered sent.
    Changed: PhotonClientWebSocket connecting to the server is cancelled after 7 second max (was: 5).
    Changed: PhotonClientWebSocket AsyncConnectAndReceive will log to the debug callback instead of using Console.Writeline().
    Changed: PhotonClientWebSocket error handling for readTask.Wait().

Version 4.1.6.25 (05. June 2023 - rev6925)
    Added: TPeer now measures longestSentCall in SendData().
    Changed: TPeer.SendOutgoingCommands() to return false if the socket is still busy (which means "no need to call send again in this loop).

Version 4.1.6.24 (15. May 2023 - rev6894)
    Changed: PhotonClientWebSocket.Send() will now Wait up to 3ms for the Send-Task before it returns "busy". This allows the task to complete and the TPeer can send multiple messages until it send MTU bytes. That avoids increasing lag, if the game logic calls SendOutgoingCommands() sparingly.
    Changed: PeerBase.Reset() will now also clear the ActionQueue.
    Fixed: WebSocket connection issues where clients never get into a Connected state. This is a workaround for cases where a WebSocket bug skips the callback for the Init Response from the server. This is a rare issue which does not reproduce 100% of the time.
    Changed: WebSocket connections will now send pings in one second intervals as long as the WebSocket is connected (and the peerConnectionState is not Disconnected).
    Changed: If a ping result arrives while the peer is still Connecting, it is used as Init Response on WebSocket connections.
    Changed: TPeer.FetchServerTimestamp() to only log something (INFO level) if the peer is not connected and initialized yet. FetchServerTimestamp can be repeated and does not need a SendError callback.
    Changed: PhotonClientWebSocket.Disconnect() to call CloseAsync() if the WebSocket is already in state CloseReceived. This should just close the socket locally.

Version 4.1.6.23 (15. March 2023 - rev6743)
    Fixed: Handling of unknown command types in Initialize(EnetPeer peer, byte[] inBuff, ref int readingOffset). Reading offset is set by Size value.
    Fixed: ReadCustomType() and ReadCustomTypeArray() to check if DeserializeStreamFunction is null, before using it. There was a check which prevented issues but it wasn't correct.
