Yeauty

Results 244 comments of Yeauty

> > 0.9.0版本支持返回子协议,可自己实现stomp > > 如何自己实现 有没有什么 参考资料 之类的 可以搜一下有没有Java单独实现stomp协议的客户端

> 看了下 好像没有现成的 可以直接融合的 , netty 不是 STOMP 服务器的实现,它只是允许您解码/编码 stomp 帧的编解码器 > `spring-boot-starter-websocket`里面倒是有 针对 STOMP的 实现 , 但是好像不太好抠出部分来 和 `netty-websocket-spring-boot-starter` 结合 如果没有单独的SDK来做 STOMP的编解码,确实比较麻烦

timer间隔多久 通常建议在客户端来做心跳,减少服务端压力

希望更多的爱好者一起进行维护,个人精力确实是有限的

这个是00版本的websocket会用到。 会在header里面添加 sec-websocket-location 。 其他版本并不会用到,也不会影响握手

> 非常感谢您的回复. > 但是我看代码的 > WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(getWebSocketLocation(req), subprotocols, true, this.config.getmaxFramePayloadLength()); > > private static String getWebSocketLocation(FullHttpRequest req) { > String location = req.headers().get(HttpHeaderNames.HOST) + req.uri(); > return...

1.代码如下 pipeline.addFirst(sslCtx.newHandler(ch.alloc())); 2.只有在握手的时候才有http的路径,后续都是发的message

> 明白了,谢谢。还请教下,现在的websocket每隔1分钟就断开链接了,这个是您提供的框架问题,还是什么问题? 要么客户端主动断开 要么中间经过的负载均衡(Nginx)断开的

请求url是什么。 onOpen的代码能发下吗

> ![image](https://user-images.githubusercontent.com/40132801/83474359-5d0b8900-a4be-11ea-8fbf-2889d82e00d2.png) > ![image](https://user-images.githubusercontent.com/40132801/83474382-71e81c80-a4be-11ea-8654-05cca0ec5889.png) > ![image](https://user-images.githubusercontent.com/40132801/83474406-81676580-a4be-11ea-8c61-b2614b316d1c.png) > > 然后在0.9.5中ParameterMap这个类也没有了,那么url中的参数该怎么接收 0.9.5可在参数中用@PathVariable String roomId 或者用 @PathVariable Map pathMap 来获取所有的restful数据