HealthShare Health Connect 2021.1Opens in a new window > Class Reference > %SYS namespace > %Net.WebSocket.IEventListener

%Net.WebSocket.IEventListener

abstract class %Net.WebSocket.IEventListener

Interface for handling events in the web socket connection. @API.Extensible

Method Inventory (Including Private)

Methods (Including Private)

method OnClose() [ Language = objectscript ]
Called when the web socket connection is closed by either the client (%OnClose) or the server (by sending a close frame).
@API.Overrideable
method OnError(pError As %Exception.AbstractException) [ Language = objectscript ]
Called when an error occurs in the web socket connection.
@API.Overrideable
method OnMessage(pContent As %Stream.Object) [ Language = objectscript ]
Called when the client receives a message from the server.
pContent may be a binary or UTF8-decoded character stream.
@API.Overrideable
method OnOpen() [ Language = objectscript ]
Called when the web socket connection is successfully opened.
@API.Overrideable
FeedbackOpens in a new window