Reputation: 1
I was trying handle message from server by using rsocket-dart package in Flutter A Server send me message by fireAndForget
Server is Spring boot
Server Code:
@Scheduled(fixedRate = 10000) public void push() { rSocketRequester .route("api.push") .data("some push message with id " + RandomUtil.getPositiveInt()) .send() .block(); }
Is it possible handle messages like this?
Or is there analog Spring annotation @MessageMapping in dart?
Upvotes: 0
Views: 47