This commit is contained in:
as2252258@163.com
2021-07-11 04:48:14 +08:00
parent 338d244560
commit bd1a34985b
+8
View File
@@ -8,6 +8,11 @@ use ReflectionException;
use Snowflake\Exception\NotFindClassException;
use HttpServer\Service\Abstracts\Websocket as HAWebsocket;
/**
* Class Websocket
* @package HttpServer\Service
*/
class Websocket extends HAWebsocket
{
@@ -28,6 +33,9 @@ class Websocket extends HAWebsocket
*/
public function onBaseListener()
{
$this->on('connect', function () {
});
$this->on('handshake', $this->createHandler('handshake'));
$this->on('message', $this->createHandler('message'));
$this->on('close', $this->createHandler('close'));