Hoshimi
NPM
GuideAPI
Hoshimi
NPM
Guide
API

WebSocketClosedEvent

The event for when the WebSocket connection is closed.

API/Interfaces/WebSocketClosedEvent
hoshimi/src/types/Player.d.ts

Signature

export interface WebSocketClosedEvent extends PlayerEvent<PlayerEventType.WebsocketClosed>

Properties

3
codebyRemotereason

Methods

0

No methods.

Properties

code#
code: number;

The close code.

@type{number}
byRemote#
byRemote: boolean;

Whether the connection was closed by the remote.

@type{boolean}
reason#
reason: string;

The reason for the closure.

@type{string}