Tomcat webSocket 7.0.28与7.0.29差异

        上周写了个webSocket 的简单例子,编译测试后一切正常,后来把程序打包给同事,一直不能创建webSocket连接。看源码后发现两个版本的实现方法不一样,7.0.29多一个HttpServletRequest 参数。

7.0.28

protected abstract StreamInbound createWebSocketInbound(String paramString);

7.0.29

protected abstract StreamInbound createWebSocketInbound(String paramString, HttpServletRequest paramHttpServletRequest);

你可能感兴趣的:(websocket)