Git Product home page Git Product logo

Comments (9)

nsalabay avatar nsalabay commented on July 25, 2024

I have same problem. Not working socket connection

from tutorial-laravel-4-real-time-chat.

assertchris avatar assertchris commented on July 25, 2024

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

from tutorial-laravel-4-real-time-chat.

blueskyneverend avatar blueskyneverend commented on July 25, 2024

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.

from tutorial-laravel-4-real-time-chat.

 avatar commented on July 25, 2024

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.

from tutorial-laravel-4-real-time-chat.

vuongtrannguyenkhoi avatar vuongtrannguyenkhoi commented on July 25, 2024

Thanks @Nietzsche-dev.

from tutorial-laravel-4-real-time-chat.

felipedmz avatar felipedmz commented on July 25, 2024

@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

from tutorial-laravel-4-real-time-chat.

susannemoog avatar susannemoog commented on July 25, 2024

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

from tutorial-laravel-4-real-time-chat.

anthonycha avatar anthonycha commented on July 25, 2024

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?

from tutorial-laravel-4-real-time-chat.

assertchris avatar assertchris commented on July 25, 2024

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.

from tutorial-laravel-4-real-time-chat.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.