Skip to content

Commit

Permalink
fix: swoft-cloud/swoft/issues/1219 ws server middleware is not works
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Feb 16, 2020
1 parent de63ec3 commit f4902ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/websocket-server/src/WsMessageDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ public function dispatch(array $module, Request $request, Response $response): R
// Append command middlewares
if ($middlewares) {
$middlewares = array_merge($this->middlewares, $middlewares);
} else {
$middlewares = $this->middlewares;
}

// If this->preCheckRoute is True, pre-check route match status
Expand Down

0 comments on commit f4902ff

Please sign in to comment.