atmosphere icon indicating copy to clipboard operation
atmosphere copied to clipboard

[ManagedService] Allow Broadcaster#broadcast to execute inside a mapped method

Open jfarcand opened this issue 10 years ago • 2 comments

A call to Broadcaster.broadcast inside a mapped method will produce recusion if the same method maps again. The following code should work but isn't with 2.1.5+

    @org.atmosphere.config.service.Message(encoders = {JacksonEncoder.class}, decoders = {JacksonDecoder.class})
    public Message onMessage(Message message) throws IOException {
        logger.info("{} just send {}", message.getAuthor(), message.getMessage());


        BroadcasterFactory.getDefault().lookup("/chat").broadcast("{\"message\":\"dsad\",\"author\":\"yoooooooooy\",\"time\":1401825872524}");

        return message;
    }

jfarcand avatar Jun 03 '14 20:06 jfarcand

Fixed 33c908d354f6c8a59719b7d1b344b9a3d55afb7f

jfarcand avatar Sep 05 '14 13:09 jfarcand

Guys, any progress on this?

eugenegoncharuk avatar Mar 23 '16 21:03 eugenegoncharuk