Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -13,10 +13,9 @@ interface OnCloseInterface
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param int $fd
|
||||
*/
|
||||
public function onClose(Server $server, int $fd): void;
|
||||
public function onClose(int $fd): void;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -10,10 +10,9 @@ interface OnDisconnectInterface
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param int $fd
|
||||
*/
|
||||
public function onDisconnect(Server $server, int $fd): void;
|
||||
public function onDisconnect(int $fd): void;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Server\Contract;
|
||||
|
||||
use Swoole\Server;
|
||||
use Kiri\Websocket\WebSocketInterface;
|
||||
use Swoole\WebSocket\Frame;
|
||||
|
||||
interface OnMessageInterface
|
||||
@@ -10,10 +10,9 @@ interface OnMessageInterface
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param Frame $frame
|
||||
* @return void
|
||||
*/
|
||||
public function onMessage(Server $server, Frame $frame): void;
|
||||
public function onMessage(Frame $frame): void;
|
||||
|
||||
}
|
||||
|
||||
@@ -3,16 +3,14 @@
|
||||
namespace Server\Contract;
|
||||
|
||||
use Swoole\Http\Request;
|
||||
use Swoole\WebSocket\Server;
|
||||
|
||||
interface OnOpenInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param Request $request
|
||||
*/
|
||||
public function onOpen(Server $server, Request $request): void;
|
||||
/**
|
||||
* @param Request $request
|
||||
*/
|
||||
public function onOpen(Request $request): void;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user