rsocket-dart icon indicating copy to clipboard operation
rsocket-dart copied to clipboard

How to handle fireAndForget message from server

Open amao512 opened this issue 1 year ago • 2 comments

I was trying handle message from server 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();
    }

Does it possible handle messages like this?

  • RSocket version(s) used: 1.0.0

amao512 avatar Mar 28 '24 12:03 amao512

Or is there analog Spring annotation @MessageMapping in dart?

amao512 avatar Mar 28 '24 12:03 amao512

@linux-china @nebhale @smaldini @yschimke Help please!!

amao512 avatar Mar 28 '24 12:03 amao512