This commit is contained in:
2022-10-11 18:41:58 +08:00
parent 707bd69eda
commit cedcb89fe4
4 changed files with 4 additions and 12 deletions
+1 -4
View File
@@ -2,9 +2,6 @@
namespace Kiri\Server\Contract;
use Swoole\WebSocket\Server;
/**
*
*/
@@ -16,7 +13,7 @@ interface OnCloseInterface
* @param int $fd
* @return void
*/
public function onClose(int $fd): void;
public function OnClose(int $fd): void;
}
+1 -5
View File
@@ -2,18 +2,14 @@
namespace Kiri\Server\Contract;
use Swoole\WebSocket\Server;
interface OnDisconnectInterface
{
/**
* @param Server $server
* @param int $fd
*/
public function onDisconnect(Server $server, int $fd): void;
public function OnDisconnect(int $fd): void;
}
+1 -1
View File
@@ -17,6 +17,6 @@ interface OnHandshakeInterface
* @param Request $request
* @param Response $response
*/
public function onHandshake(Request $request, Response $response): void;
public function OnHandshake(Request $request, Response $response): void;
}
+1 -2
View File
@@ -10,10 +10,9 @@ interface OnMessageInterface
/**
* @param Server|\Swoole\Coroutine\Http\Server $server
* @param Frame $frame
* @return void
*/
public function onMessage(Server|\Swoole\Coroutine\Http\Server $server, Frame $frame): void;
public function OnMessage(Frame $frame): void;
}