shikeying
2024-02-22 0632a02beb78705dc93b760c7bfa86ecedacb970
walker-tcp/src/main/java/com/walker/tcp/netty/WebSocketNettyHandler.java
@@ -33,6 +33,24 @@
      return uri;
   }
   /**
    * 设置外部配置的websocket访问地址。
    * <pre>
    *     1) 该地址是浏览器可访问的最终地址,如:ws://my.com/websocket 或 wss://my.com/wss
    *     2) 引擎本身并不会生成地址,代码中log日志中websocket仅是调试并非真正路径
    *     3) 引擎仅监听设置的端口(默认60000),通常在 nginx 配置中,代理该端口即可,如:
    *
    *     ...
    *     location /wss {
    *         proxy_pass http://my.com:60000;
    *         proxy_http_version 1.1;
    *         proxy_set_header Upgrade $http_upgrade;
    *         proxy_set_header Connection "Upgrade";
    *     }
    *
    * </pre>
    * @param uri
    */
   public void setUri(String uri) {
      this.uri = uri;
   }