PHP code example of blackbes / yii2-yiisockets
1. Go to this page and download the library: Download blackbes/yii2-yiisockets library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackbes / yii2-yiisockets example snippets
javascript
let _ws = new Yii2WebSockets(login_credentials);
_ws.connect(socketAddress, socketPort, socketMode, socketRoute);
// Default values are
// - socketAddress = 'localhost';
// - socketPort = '8088';
// - socketMode = 'ws';
// - socketRoute = '';