多模块项目下websocket不生效问题
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.3k
- Forks
- 614
- PR merge metrics
- No merged PRs in 30d
Description
DESC
ENV
OS Platform:
Node.js Version: 12.0
ThinkJS Version: 3.0
按照官方文档配置websock后,客户端连接时可以连接上,但是openAction里面的方法没有被调用,看到路由信息是正确的,请问是哪里出了问题,下面是相关代码:
adapter.js

src/adrule/controller/url.js

日志信息


看日志信息,路由信息是对的,但是不知道为啥open方法没有被调用,请教大佬解答~~~
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect adapter.js and src/adrule/controller/url.js alongside the official websocket configuration; begin by reproducing the issue with Node.js 12 and ThinkJS 3.0, then compare the route logs with openAction invocation. Done means identifying why the connection succeeds while openAction is not called and documenting a verified fix or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100