thinkjs / thinkjs/thinkjs

多模块项目下websocket不生效问题

Open
#1,496 0 comments 0 reactions 0 assignees View on GitHub

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
image

src/adrule/controller/url.js
image

日志信息
image
image

看日志信息,路由信息是对的,但是不知道为啥open方法没有被调用,请教大佬解答~~~

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.