Skip to content

Commit eea99bb

Browse files
committed
remove onConnect and onClose
1 parent b4d34cd commit eea99bb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/TerminalServer.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ class TerminalServer {
44
private $status, $gc_collect_cycles_result, $clear_cache_result;
55
private $fd_table, $switch_log_request_1, $switch_log_request_2, $notify_log_queue_atomic;
66
public function __construct(\Swoole\Server\Port $port) {
7-
$port->on('connect', [
8-
$this,
9-
'onConnect'
10-
]);
7+
// $port->on('connect', [
8+
// $this,
9+
// 'onConnect'
10+
// ]);
1111
$port->on('receive', [
1212
$this,
1313
'onReceive'
1414
]);
15-
$port->on('close', [
16-
$this,
17-
'onClose'
18-
]);
15+
// $port->on('close', [
16+
// $this,
17+
// 'onClose'
18+
// ]);
1919
$port->set([
2020
'open_eof_split' => true,
2121
'package_eof' => "\r\n"

0 commit comments

Comments
 (0)