atmosphere
atmosphere copied to clipboard
[ManagedService] Allow Broadcaster#broadcast to execute inside a mapped method
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;
}
Fixed 33c908d354f6c8a59719b7d1b344b9a3d55afb7f
Guys, any progress on this?