@ProviderType
public interface UiWebsocket
Modifier and Type | Method and Description |
---|---|
void |
send(java.lang.String edgeId,
JsonrpcNotification notification)
Send a JSON-RPC Notification broadcast to all UI sessions with a given
Edge-ID.
|
void |
send(java.util.UUID token,
JsonrpcNotification notification)
Send a JSON-RPC Notification to a UI session.
|
java.util.concurrent.CompletableFuture<JsonrpcResponseSuccess> |
send(java.util.UUID token,
JsonrpcRequest request)
Send a JSON-RPC Request to a UI session via WebSocket and expect a JSON-RPC
Response.
|
java.util.concurrent.CompletableFuture<JsonrpcResponseSuccess> send(java.util.UUID token, JsonrpcRequest request) throws OpenemsError.OpenemsNamedException
token
- the UI tokenrequest
- the JsonrpcRequestOpenemsError.OpenemsNamedException
- on errorvoid send(java.util.UUID token, JsonrpcNotification notification) throws OpenemsError.OpenemsNamedException
token
- the UI tokennotification
- the JsonrpcNotificationOpenemsError.OpenemsNamedException
- on errorvoid send(java.lang.String edgeId, JsonrpcNotification notification) throws OpenemsError.OpenemsNamedException
edgeId
- the Edge-IDnotification
- the JsonrpcNotificationOpenemsError.OpenemsNamedException
- on error