tutorial-laravel-4-real-time-chat icon indicating copy to clipboard operation
tutorial-laravel-4-real-time-chat copied to clipboard

Not Working

Open azizgithub opened this issue 11 years ago • 9 comments

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 ??

azizgithub avatar Mar 11 '14 04:03 azizgithub

I have same problem. Not working socket connection

nsalabay avatar Mar 21 '14 15:03 nsalabay

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

assertchris avatar Mar 24 '14 11:03 assertchris

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.

blueskyneverend avatar Apr 17 '14 07:04 blueskyneverend

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.

ghost avatar Apr 18 '14 00:04 ghost

Thanks @nietzsche-dev.

vuongtrannguyenkhoi avatar Apr 18 '14 01:04 vuongtrannguyenkhoi

@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

felipedmz avatar May 06 '14 20:05 felipedmz

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...

susannemoog avatar May 30 '14 12:05 susannemoog

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?

anthonycha avatar Aug 29 '14 09:08 anthonycha

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.

assertchris avatar Oct 13 '14 07:10 assertchris