rsocket / rsocket-dart

Dart implementation of RSocket
Apache License 2.0
31 stars 25 forks source link

How to handle fireAndForget message from server #30

Open amao512 opened 7 months ago

amao512 commented 7 months ago

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?

amao512 commented 7 months ago

Or is there analog Spring annotation @MessageMapping in dart?

amao512 commented 7 months ago

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