PHP code example of wu / giorgio-socket
1. Go to this page and download the library: Download wu/giorgio-socket 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/ */
wu / giorgio-socket example snippets
Route::get('/socket', function () {
\Illuminate\Support\Facades\Http::asForm()->post('http://127.0.0.1:9501', [
'to' => 2,
'message' => 'server message',
]);
});
php artisan vendor:publish --provider="GiorgioSocket\Providers\SocketServiceProvider"
php artisan socket:start