+ final var jsonRpcRequest = JsonRpcRequest.forNotification("receive", params, null);
+ try {
+ jsonRpcSender.sendRequest(jsonRpcRequest);
+ } catch (AssertionError e) {
+ if (e.getCause() instanceof ClosedChannelException) {
+ unsubscribeReceive(subscriptionId);
+ }
+ }