MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / WebGLOnClose

Method WebGLOnClose

sdks/csharp/src/WebSocket.cs:109–118  ·  view source on GitHub ↗
(int socketId, int code, IntPtr reasonPtr)

Source from the content-addressed store, hash-verified

107 }
108
109 [AOT.MonoPInvokeCallback(typeof(Action<int, int, IntPtr>))]
110 private static void WebGLOnClose(int socketId, int code, IntPtr reasonPtr)
111 {
112 try {
113 string reason = Marshal.PtrToStringUTF8(reasonPtr);
114 Instance?.HandleWebGLClose(socketId, code, reason);
115 } catch (Exception e) {
116 UnityEngine.Debug.LogError($"Error handling close: {e}");
117 }
118 }
119
120 [AOT.MonoPInvokeCallback(typeof(Action<int>))]
121 private static void WebGLOnError(int socketId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected