PHPSocketIO中ChannelAdapter的用法

cuifox

问题描述

ChannelAdapter是如何用的,它的作用时什么,如何应用?
以下面的代码会报错

$io = new SocketIO(9505, [
    'adapter' => ChannelAdapter::class,
]);

Exception 'Exception' with message 'Channel\Client not support subscribe method when it is not in the workerman environment.'

in /vendor/workerman/channel/src/Client.php:369
120 0 0
0个回答

×
🔝