$remote_server = new Client('websocket://s.sportnanoapi.com:443', [
'client_id'=>'MqttClient_'.self::msectime(),
'ssl' => true,
'username' => env('NAMI_USER'),
'password' => env('NAMI_SECRET'),
'connect_timeout' => 10,
'keepalive' => 20,
'clean_session' => true,
]);
Exception: You can't send(array) to client, you need to convert it to a string. in /var/www/59hongdan/vendor/workerman/workerman/Protocols/Websocket.php:236
Stack trace:
#0 /var/www/59hongdan/vendor/workerman/workerman/Connection/TcpConnection.php(344): Workerman\Protocols\Websocket::encode(Array, Object(Workerman\Connection\AsyncTcpConnection))
#1 /var/www/59hongdan/vendor/workerman/mqtt/src/Client.php(452): Workerman\Connection\TcpConnecti