Class: connect_error_cb
Multiplayer callback binding for connect_error_cb.
Source
C++ class connect_error_cb
Custom Constructor
connect_error_cb
Remarks
Used by multiplayer server-list connection attempts.
Constructors
Constructor
ts
new connect_error_cb(object: object, cb: (this: object, code: number, description: string) => void): connect_error_cb;Parameters
| Parameter | Type | Description |
|---|---|---|
object | object | Lua object used as callback this. |
cb | (this: object, code: number, description: string) => void | Called with error code and status description. |
Returns
connect_error_cb
Methods
bind()
ts
bind(object: object, cb: (this: object, code: number, description: string) => void): void;Replace the bound callback.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | object | Lua object used as callback this. |
cb | (this: object, code: number, description: string) => void | Called with error code and status description. |
Returns
void
clear()
ts
clear(): void;Clear the bound callback.
Returns
void
Remarks
After clearing, native connection errors have no Lua function to call.