Skip to content

Commit 52c2daa

Browse files
committed
XCOMMONS-3425: The Netflux WebSocket endpoint delays replies for no good reason
1 parent a296e52 commit 52c2daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xwiki-platform-core/xwiki-platform-netflux/xwiki-platform-netflux-api/src/main/java/org/xwiki/netflux/internal/EntityChannelScriptAuthorBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void onChannelMessage(Channel channel, User sender, String messageType, S
8484
{
8585
// We're interested only in messages that have content (we want to ignore for instance join, leave or ping
8686
// messages).
87-
if (MessageDispatcher.COMMAND_MSG.equals(messageType)) {
87+
if (MessageBuilder.COMMAND_MSG.equals(messageType)) {
8888
this.entityChannels.getChannel(channel.getKey())
8989
.ifPresent(entityChannel -> this.webSocketContext.run(sender.getSession(), () -> {
9090
UserReference senderUserReference = this.currentUserResolver.resolve(CurrentUserReference.INSTANCE);

0 commit comments

Comments
 (0)