使用但可序列化方法的sse事件不起作用

时间:2018-12-19 12:55:43

标签: server-sent-events

return Flux.create(sink -> { FluxSink<String> serialize = sink.serialize(); MessageHandler handler = msg -> serialize.next(String.class.cast(msg.getPayload())); serialize.setCancellation(() -> filesChannel().unsubscribe(handler)); filesChannel().subscribe(handler); });

类型FluxSink的serialize()方法未定义

0 个答案:

没有答案