Interface ServerInputHandlerOptions

Options to configure a ServerInputHandler

ServerInputHandlerOptions

interface ServerInputHandlerOptions {
    fireRate: number;
    key: string;
    on: ((socket, playerObject) => void);
}

Properties

Properties

fireRate: number

How often to fire the event (in milliseconds)

key: string

Key to listen for

on: ((socket, playerObject) => void)

Function to run when the event is fired

Type declaration

    • (socket, playerObject): void
    • Function to run when the event is fired

      Parameters

      Returns void

Generated using TypeDoc