Open azizgithub opened 10 years ago
I have same problem. Not working socket connection
Blank page does sound like a composer download problem. Do you have the code somewhere I can look at?
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.
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.
Thanks @nietzsche-dev.
@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.
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...
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?
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.
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 ??