Package io.openems.common.websocket
Class DummyWebsocketServer.Builder
java.lang.Object
io.openems.common.websocket.DummyWebsocketServer.Builder
- Enclosing class:
DummyWebsocketServer
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets theOnClose
callback.Sets theOnError
callback.onNotification
(OnNotification onNotification) Sets theOnNotification
callback.Sets theOnOpen
callback.Sets theOnRequest
callback.
-
Method Details
-
onOpen
Sets theOnOpen
callback.- Parameters:
onOpen
- the callback- Returns:
- the
DummyWebsocketServer.Builder
-
onRequest
Sets theOnRequest
callback.- Parameters:
onRequest
- the callback- Returns:
- the
DummyWebsocketServer.Builder
-
onNotification
Sets theOnNotification
callback.- Parameters:
onNotification
- the callback- Returns:
- the
DummyWebsocketServer.Builder
-
onError
Sets theOnError
callback.- Parameters:
onError
- the callback- Returns:
- the
DummyWebsocketServer.Builder
-
onClose
Sets theOnClose
callback.- Parameters:
onClose
- the callback- Returns:
- the
DummyWebsocketServer.Builder
-
build
-