Expose Websocket Explosions to Udon/U#
Trudolph
When a local user loses internet, the WebsocketPipeline Websocket immediately "explodes". A bool or callback function similar to OnPlayerLeft to detect this locally, as a way to differentiate whether networked events are coming from an illegitimate source spamming the function (such as someone using a modded client), or simply because the receiver was having connectivity issues and events were piling up.
Using the WebsocketPipeline Websocket explosion seems like the most obvious implementation, but any bool and/or callback that can detect whether the local player has lost internet access would work.
Fires when the local player's connection is lost:
public override void OnLocalPlayerConnectionLost() { }
Fires when the local player's connection is restored:
public override void OnLocalPlayerConnectionRestored() { }
Accessible bool:
Networking.LocalPlayer.isConnectionStable
Log In