Skip to main content

%Net.WebSocket.IEventListener

abstract class %Net.WebSocket.IEventListener

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

Method Inventory

Methods

method OnClose()
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)
Called when an error occurs in the web socket connection.
@API.Overrideable
method OnMessage(pContent As %Stream.Object)
Called when the client receives a message from the server.
pContent may be a binary or UTF8-decoded character stream.
@API.Overrideable
method OnOpen()
Called when the web socket connection is successfully opened.
@API.Overrideable
FeedbackOpens in a new tab