Closed CamiloTilaguy closed 3 years ago
I have a problem with strange characters that can be seen in the Google Chrome console.
Any idea of the error?
My file is (in utf-8):
<?php use Workerman\Worker; use PHPSocketIO\SocketIO; require_once __DIR__ . '/vendor/autoload.php'; // SSL context $context = array( 'ssl' => array( 'local_cert' => '.../fullchain.pem', 'local_pk' => '.../privkey.pem', 'verify_peer' => false ) ); $io = new SocketIO(2021, $context); $io->on('connection', function($connection)use($io){ $io->emit('elMensajeServido', 'Se conecto un cliente, Conexiones: 12'); $io->emit('panel_N_visitantes_online', 12); echo 'conecto: 12\n'; }); Worker::runAll();
Don't worry, it's part of the socket.io's protocol, no problem.
I have a problem with strange characters that can be seen in the Google Chrome console.
Any idea of the error?
My file is (in utf-8):