后台抛出异常如下: Operator called default onErrorDropped reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.IllegalArgumentException: WebSocket close status code does NOT comply with RFC-6455: 1005 Caused by: java.lang.IllegalArgumentException: WebSocket close status code does NOT comply with RFC-6455: 1005 分析原因是: spring cloud gateway 转发websocket请求无法监听到 close 事件 没有收到预期的状态码 解决方案: 在gateway进行请求拦截 代码如下: @Slf4j @Component public class CustomWebsocketRoutingFilter implements GlobalFilter,...