简体   繁体   中英

How to secure websockets in netty webserver

我有一个支持websockets的netty网络服务器,但我不知道如何保护websockets,因为从理论上讲,任何人都可以打开websocket并从websocket发送和接收websocketframes。

I think u have to add an SSlHandler into your pipeline. Here is an example which will hopefully help you. https://netty.io/4.1/xref/io/netty/example/http/websocketx/server/WebSocketServer.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM