public interface WebSocketConfigurer
Modifier and Type | Method and Description |
---|---|
WebSocketConfigurer |
onClose(WebSocket.OnClose callback)
Register an
onClose callback. |
WebSocketConfigurer |
onConnect(WebSocket.OnConnect callback)
Register an
onConnect callback. |
WebSocketConfigurer |
onError(WebSocket.OnError callback)
Register an
onError callback. |
WebSocketConfigurer |
onMessage(WebSocket.OnMessage callback)
Register an
onMessage callback. |
@Nonnull WebSocketConfigurer onConnect(@Nonnull WebSocket.OnConnect callback)
onConnect
callback.callback
- Callback.@Nonnull WebSocketConfigurer onMessage(@Nonnull WebSocket.OnMessage callback)
onMessage
callback.callback
- Callback.@Nonnull WebSocketConfigurer onError(@Nonnull WebSocket.OnError callback)
onError
callback.callback
- Callback.@Nonnull WebSocketConfigurer onClose(@Nonnull WebSocket.OnClose callback)
onClose
callback.callback
- Callback.Copyright © 2022. All rights reserved.