Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Sep 19, 2023
1 parent a46bb0f commit ef23569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/WebSocket/Application/WsAppContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function pushSelf(mixed ...$args): bool
return $this->pushTo($this->getFd(), ...$args);
}

public function pushSelfRaw(string $data): bool
public function pushRawSelf(string $data): bool
{
return $this->pushRawTo($this->getFd(), $data);
}
Expand Down
4 changes: 2 additions & 2 deletions src/WebSocket/Middleware/WebSocketRoutingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
throw new \InvalidArgumentException(static::class . ' must use on websocket environment.');
}

$request = $this->handleByClient($request);
$request = $this->handleByParser($request);
$route = $request->getRequestTarget();

$matched = $router->match($request, $route);
Expand Down Expand Up @@ -83,7 +83,7 @@ function (WsAppContext $context) use ($request, $controller, $matched) {
);
}

protected function handleByClient(WebSocketRequestInterface $request): WebSocketRequestInterface
protected function handleByParser(WebSocketRequestInterface $request): WebSocketRequestInterface
{
return $this->app->getParser()->handleRequest($request);
}
Expand Down

0 comments on commit ef23569

Please sign in to comment.