Skip to content

Commit 6fafe63

Browse files
committed
Ignore Pong messages in StompSubProtocolHandler
Issue: SPR-12728
1 parent f1e406c commit 6fafe63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
2828

2929
import org.apache.commons.logging.Log;
3030
import org.apache.commons.logging.LogFactory;
31+
3132
import org.springframework.context.ApplicationEvent;
3233
import org.springframework.context.ApplicationEventPublisher;
3334
import org.springframework.context.ApplicationEventPublisherAware;
@@ -200,7 +201,7 @@ else if (webSocketMessage instanceof BinaryMessage) {
200201
byteBuffer = ((BinaryMessage) webSocketMessage).getPayload();
201202
}
202203
else {
203-
throw new IllegalArgumentException("Unexpected WebSocket message type: " + webSocketMessage);
204+
return;
204205
}
205206

206207
BufferingStompDecoder decoder = this.decoders.get(session.getId());

0 commit comments

Comments
 (0)