Skip to content

Commit

Permalink
Removed not necessary callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Jan 24, 2024
1 parent b357e23 commit afe8db9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Services/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,13 @@ public function run(): void
}
$event->server->on('request', [$this, 'handleRequest']);
$event->server->on('handshake', [$this, 'handleWsHandshake']);
$event->server->on('open', [$this, 'handleWsOpen']);
},
ConveyorServer::EVENT_MESSAGE_RECEIVED => [$this, 'handleWsMessage'],
],
persistence: $this->wsPersistence,
);
}

public function handleWsOpen(OpenSwooleServer $server, Request $request): void
{
$message = 'OpenSwoole Connection opened'
. ' with FD: ' . $request->fd
. ' on ' . $server->host . ':' . $server->port
. ' at ' . Carbon::now()->format('Y-m-d H:i:s');
$this->logger->info($this->logPrefix . $message);
}

public function handleWsHandshake(Request $request, Response $response): bool
{
$this->logger->info($this->logPrefix . ' Handshake received from ' . $request->fd);
Expand Down

0 comments on commit afe8db9

Please sign in to comment.