Skip to content

Connector

Extended by

Constructors

new Connector()

new Connector(client: any): Connector

Parameters

ParameterType
clientany

Returns

Connector

Defined in

shoukaku/src/connectors/Connector.ts:18

Methods

getId()

abstract getId(): string

Returns

string

Defined in

shoukaku/src/connectors/Connector.ts:45


listen()

abstract listen(nodes: NodeOption[]): void

Parameters

ParameterType
nodesNodeOption[]

Returns

void

Defined in

shoukaku/src/connectors/Connector.ts:49


sendPacket()

abstract sendPacket(
shardId: number,
payload: unknown,
important: boolean): void

Parameters

ParameterType
shardIdnumber
payloadunknown
importantboolean

Returns

void

Defined in

shoukaku/src/connectors/Connector.ts:47


set()

set(manager: Shoukaku): Connector

Parameters

ParameterType
managerShoukaku

Returns

Connector

Defined in

shoukaku/src/connectors/Connector.ts:24