Comments (9)
I have same problem. Not working socket connection
from tutorial-laravel-4-real-time-chat.
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.
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.
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.
Thanks @Nietzsche-dev.
from tutorial-laravel-4-real-time-chat.
@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.
from tutorial-laravel-4-real-time-chat.
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.
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.
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)
- incorrect composer invocation HOT 3
- how to create group chat HOT 1
- WebSocket connection to 'ws://127.0.0.1:7778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED HOT 26
- php artisan chat:serve HOT 1
- Keep the ws server running
- Unable to connect to mqtt broker
- WebSocket is already in CLOSING or CLOSED state. HOT 1
- How do I start the server? HOT 1
- Can't connect to WS HOT 3
- Save message to database HOT 1
- How can I bring it on real world!!!
- Names of users HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutorial-laravel-4-real-time-chat.