static int QPYX_CloseWebSocketWithMsg_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 3); DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)ToLua.CheckObject <DNet.GameWebSocketClient>(L_YXQP, 1); ushort QPYX_arg0_YXQP = (ushort)LuaDLL.luaL_checknumber(L_YXQP, 2); string QPYX_arg1_YXQP = ToLua.CheckString(L_YXQP, 3); QPYX_obj_YXQP.CloseWebSocketWithMsg(QPYX_arg0_YXQP, QPYX_arg1_YXQP); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int CloseWebSocketWithMsg(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); DNet.GameWebSocketClient obj = (DNet.GameWebSocketClient)ToLua.CheckObject <DNet.GameWebSocketClient>(L, 1); ushort arg0 = (ushort)LuaDLL.luaL_checknumber(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.CloseWebSocketWithMsg(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }