hyperf / hyperf/socketio-server
中间件配置无效
- Dominant language
- PHP
- Stars
- 26
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
中间件配置无效,在config/autoload/middlewares.php中配置的
服务器版本:AlmaLinux 9
php版本:8.3.3
redis版本:7.2.4
hyperf版本:3.1
socketio-server库版本:3.1.6
运行没有报错,socketio通信正常,第一次请求没有经过中间件。
config/autoload/middlewares.php
'socket-io' => [
App\Middleware\SocketAuthenticationMiddleware::class,
]
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with config/autoload/middlewares.php and App\Middleware\SocketAuthenticationMiddleware, then reproduce the first Socket.IO request using the reported Hyperf 3.1 and socketio-server 3.1.6 versions. Trace middleware registration and invocation, and verify that the first request passes through the configured middleware without breaking normal Socket.IO communication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100