Constructors
Methods
on
- on(action: string, handler: () => void): void
Parameters
- action: string
- handler: () => void
Returns void
send
- send(action: string, data?: Record<string, unknown>): void
Parameters
- action: string
Optional
data: Record<string, unknown>
Returns void