modify plugin name

This commit is contained in:
2022-06-16 17:38:23 +08:00
parent 10de6b5246
commit 4daad7d111
22 changed files with 1206 additions and 70 deletions
@@ -0,0 +1,38 @@
<?php
class TestSocketServer
{
public function onHandshake($request, $response): int
{
return 200;
}
public function onMessage($server, $frame): void
{
// TODO: Implement onMessage() method.
}
public function onClose($server, int $fd): void
{
// TODO: Implement onClose() method.
}
public function onOpen($server, $request): void
{
// TODO: Implement onOpen() method.
}
}
var_dump(is_callable(new TestSocketServer(), true));
//
//Router::addServer('ws', function () {
// Router::get('/', 'TestSocketServer');
//});