Skip to content

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 ​

ParameterTypeDescription
objectobjectLua object used as callback this.
cb(this: object, code: number, description: string) => voidCalled 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 ​

ParameterTypeDescription
objectobjectLua object used as callback this.
cb(this: object, code: number, description: string) => voidCalled 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.