Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aimee1608 opened this issue Jan 13, 2025 · 2 comments
Labels
💬 question Further information is requested

Comments

@Aimee1608
Copy link

描述你的问题(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',
    },
@Aimee1608 Aimee1608 added the 💬 question Further information is requested label Jan 13, 2025
@Ricbet
Copy link
Member

Ricbet commented Jan 14, 2025

@hacke2
Copy link
Member

hacke2 commented Jan 14, 2025

更复杂的 wsPath 定义可以看这个 PR #1228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants