变更
This commit is contained in:
@@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
namespace Kiri\Server\Contract;
|
namespace Kiri\Server\Contract;
|
||||||
|
|
||||||
|
|
||||||
use Swoole\WebSocket\Server;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -16,7 +13,7 @@ interface OnCloseInterface
|
|||||||
* @param int $fd
|
* @param int $fd
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function onClose(int $fd): void;
|
public function OnClose(int $fd): void;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,18 +2,14 @@
|
|||||||
|
|
||||||
namespace Kiri\Server\Contract;
|
namespace Kiri\Server\Contract;
|
||||||
|
|
||||||
|
|
||||||
use Swoole\WebSocket\Server;
|
|
||||||
|
|
||||||
interface OnDisconnectInterface
|
interface OnDisconnectInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Server $server
|
|
||||||
* @param int $fd
|
* @param int $fd
|
||||||
*/
|
*/
|
||||||
public function onDisconnect(Server $server, int $fd): void;
|
public function OnDisconnect(int $fd): void;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,6 @@ interface OnHandshakeInterface
|
|||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param Response $response
|
* @param Response $response
|
||||||
*/
|
*/
|
||||||
public function onHandshake(Request $request, Response $response): void;
|
public function OnHandshake(Request $request, Response $response): void;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,9 @@ interface OnMessageInterface
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Server|\Swoole\Coroutine\Http\Server $server
|
|
||||||
* @param Frame $frame
|
* @param Frame $frame
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function onMessage(Server|\Swoole\Coroutine\Http\Server $server, Frame $frame): void;
|
public function OnMessage(Frame $frame): void;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user