Initializer
WebSocketEndpoint(Matcher path, void onOpen(WebSocketChannel channel) = ..., void onClose(WebSocketChannel channel, CloseReason closeReason) = ..., void onError(WebSocketChannel channel, Throwable? throwable) = ..., void onText(WebSocketChannel channel, String text) = ..., void onBinary(WebSocketChannel channel, ByteBuffer binary) = ...)
Parameters:
  • onOpen = noop()
  • onClose = noop()
  • onError = noop()
  • onText = (WebSocketChannel channel, String text) => noop()
  • onBinary = (WebSocketChannel channel, ByteBuffer binary) => noop()
Inherited Attributes
Attributes inherited from: EndpointBase
Attributes inherited from: Object
Methods
onBinarySource Codeshared void onBinary(WebSocketChannel channel, ByteBuffer binary)
onTextSource Codeshared void onText(WebSocketChannel channel, String text)
Inherited Methods
Methods inherited from: Object
Methods inherited from: WebSocketBaseEndpoint