This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sending to sender-client only | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* If the incoming request is an OPTIONS request | |
* we will register a handler for the requested route | |
*/ | |
class CatchAllOptionsRequestsProvider extends ServiceProvider { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$currencies = array('code' => | |
array('code' =>'AFN' , 'name' => 'Afghani', 'symbol' => '؋' ), | |
array('code' =>'ALL' , 'name' => 'Lek', 'symbol' => 'Lek' ), | |
array('code' =>'ANG' , 'name' => 'Netherlands Antillian Guilder', 'symbol' => 'ƒ' ), | |
array('code' =>'ARS' , 'name' => 'Argentine Peso', 'symbol' => '$' ), | |
array('code' =>'AUD' , 'name' => 'Australian Dollar', 'symbol' => '$' ), | |
array('code' =>'AWG' , 'name' => 'Aruban Guilder', 'symbol' => 'ƒ' ), | |
array('code' =>'AZN' , 'name' => 'Azerbaijanian Manat', 'symbol' => 'ман' ), | |
array('code' =>'BAM' , 'name' => 'Convertible Marks', 'symbol' => 'KM' ), |