Skip to main content

core.iwebsocket.addeventlistener_1

Home > @medplum/core > IWebSocket > addEventListener

IWebSocket.addEventListener() method

Signature:

addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;

Parameters

Parameter

Type

Description

type

string

listener

EventListenerOrEventListenerObject

options

boolean | AddEventListenerOptions

(Optional)

Returns:

void