assertchris / tutorial-laravel-4-real-time-chat

Other
115 stars 64 forks source link

Not Working #7

Open azizgithub opened 10 years ago

azizgithub commented 10 years ago

I just donwload it and run composer then try to use., but it's not working.. I try to access it just a blank page., Can u help me ??

nsalabay commented 10 years ago

I have same problem. Not working socket connection

assertchris commented 10 years ago

Blank page does sound like a composer download problem. Do you have the code somewhere I can look at?

blueskyneverend commented 10 years ago

This is what i looking for,I just test your code but it seemed to have some issues, 'WebSocket is already in CLOSING or CLOSED state.', I didn't how to get it works.

ghost commented 10 years ago

Apparently you need to create an artisan command and run it on the command line before you can connect via browser. But the author only hints at it and doesn't explain how to do it, sadly I can't help you either. Maybe he'll improve the tutorial with regards to that.

vuongtrannguyenkhoi commented 10 years ago

Thanks @nietzsche-dev.

felipedmz commented 10 years ago

@vuongtrannguyenkhoi, u have to run 'php artisan chat:serve' at the command line before browser access.

That command is declared in '/workbench/formativ/chat/src/Formativ/Chat/Command/Serve.php'.

I've created a virtualhost and it works for me.

captura de tela de 2014-05-06 17 10 34

susannemoog commented 10 years ago

I had to add:

$emitter = new \Evenement\EventEmitter(); $chat = new \Sumo\Chat\Chat($emitter); Artisan::add(new Sumo\Chat\Command\Serve($chat));

to app/start/artisan.php to get the command working...

anthonycha commented 10 years ago

tried both solutions in this thread but no luck yet... the error i get when i run the artisan command is [InvalidArgumentException]
There are no commands defined in the "chat" namespace.

I also tried the solutions in the closed issues with no luck Any suggestions?

assertchris commented 10 years ago

You need to register the command (created here: https://medium.com/@assertchris/laravel-4-real-time-chat-eaa550829538#c61b) with Artisan.

Sorry for the delayed response.