app/Http/Controllers/MessageController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
    {
        $verison = new Version2X('http://localhost:3000');
        $client = new Client($verison);
        $client->initialize();
        $client->emit('new_order', ["test" => "test", "test1" => "test1"]);
        $client->close();
    }
public function index ( Request $ request ) { $ verison = new Version2X ( 'http://localhost:3000' ) ; $ client = new Client ( $ verison ) ; $ client -> initialize ( ) ; $ client -> emit ( 'new_order' , [ " test " => " test " , " test1 " => " test1 " ] ) ; $ client -> close ( ) ; }
Display a listing of the resource.
Display a listing of the resource .