(int socketId, int code, IntPtr reasonPtr)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected