HighSpeaker/.history/process/dns/Dns_20221217204826.php

27 lines
515 B
PHP
Raw Permalink Normal View History

2022-12-18 18:14:03 +08:00
<?php
namespace process;
use Workerman\Connection\TcpConnection;
class Pusher
{
public function onConnect(TcpConnection $connection)
{
echo "onConnect\n";
}
public function onWebSocketConnect(TcpConnection $connection, $http_buffer)
{
echo "onWebSocketConnect\n";
}
public function onMessage(TcpConnection $connection, $data)
{
$connection->send($data);
}
public function onClose(TcpConnection $connection)
{
echo "onClose\n";
}
}