[英]How to secure websockets in netty webserver
我有一个支持websockets的netty网络服务器,但我不知道如何保护websockets,因为从理论上讲,任何人都可以打开websocket并从websocket发送和接收websocketframes。
I think u have to add an SSlHandler into your pipeline. 我认为您必须将SSlHandler添加到您的管道中。 Here is an example which will hopefully help you.
这是一个希望对您有所帮助的示例。 https://netty.io/4.1/xref/io/netty/example/http/websocketx/server/WebSocketServer.html
https://netty.io/4.1/xref/io/netty/example/http/websocketx/server/WebSocketServer.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.