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

Closed
Aimee1608 opened this issue Jan 13, 2025 · 3 comments
Labels
💬 question Further information is requested 👾 wontfix

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

Copy link

stale bot commented Mar 15, 2025

此问题已被自动标记为已过时,如果没有进一步的活动,它将被关闭。谢谢您的贡献。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 👾 wontfix label Mar 15, 2025
@stale stale bot closed this as completed Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 question Further information is requested 👾 wontfix
Projects
None yet
Development

No branches or pull requests

3 participants