Skip to content

[Question] wsPath 路径可以设置指定路径吗? 能支持 ws://x.x.x.x:port/custom-path/service 这种路径吗? #4317

Open
@Aimee1608

Description

描述你的问题(Describe you question here)
看源码中有关于 路径的判断处理,

  const channelHandler = new CommonChannelHandler('/service', commonChannelPathHandler, logger, {
    pathMatchOptions: serverAppOpts.pathMatchOptions,
    wsServerOptions: serverAppOpts.wsServerOptions,
  });

wsPath 是只能支持ws://x.x.x.x:port/service 吗?能否支持 ws://x.x.x.x:port/custom-path/service
设置 wsServerOptions 参数无效

 wsServerOptions: {
      path: '/custom-path/service',
    },

Metadata

Assignees

No one assigned

    Labels

    💬 questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions