public void GSExternalSend(int socketId, string message) { GameSparksNativePINVOKE.CSharp_NativeWebSocket_GSExternalSend(swigCPtr, socketId, message); if (GameSparksNativePINVOKE.SWIGPendingException.Pending) { throw GameSparksNativePINVOKE.SWIGPendingException.Retrieve(); } }
public void GSExternalOpen(int socketId, string url, string gameObjectName) { GameSparksNativePINVOKE.CSharp_NativeWebSocket_GSExternalOpen(swigCPtr, socketId, url, gameObjectName); if (GameSparksNativePINVOKE.SWIGPendingException.Pending) { throw GameSparksNativePINVOKE.SWIGPendingException.Retrieve(); } }
public void GSExternalSendBinary(int socketId, byte[] message, int offset, int length) { GameSparksNativePINVOKE.NativeWebSocket_GSExternalSendBinary(swigCPtr, socketId, message, offset, length); if (GameSparksNativePINVOKE.SWIGPendingException.Pending) { throw GameSparksNativePINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void Dispose() { lock (this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; GameSparksNativePINVOKE.CSharp_delete_NativeWebSocket_Result(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } }
public string getMessage() { string ret = GameSparksNativePINVOKE.CSharp_NativeWebSocket_Result_getMessage(swigCPtr); return(ret); }
public NativeWebSocket.Result.Type getType() { NativeWebSocket.Result.Type ret = (NativeWebSocket.Result.Type)GameSparksNativePINVOKE.CSharp_NativeWebSocket_Result_getType(swigCPtr); return(ret); }
public NativeWebSocket.Result GetNextResult() { global::System.IntPtr cPtr = GameSparksNativePINVOKE.CSharp_NativeWebSocket_GetNextResult(swigCPtr); NativeWebSocket.Result ret = (cPtr == global::System.IntPtr.Zero) ? null : new NativeWebSocket.Result(cPtr, true); return(ret); }
public bool Update(float dt) { bool ret = GameSparksNativePINVOKE.CSharp_NativeWebSocket_Update(swigCPtr, dt); return(ret); }
public void GSExternalClose(int socketId) { GameSparksNativePINVOKE.CSharp_NativeWebSocket_GSExternalClose(swigCPtr, socketId); }
public NativeWebSocket() : this(GameSparksNativePINVOKE.CSharp_new_NativeWebSocket(), true) { }