assertchris / tutorial-laravel-4-real-time-chat Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi
i am facing this issue in browser please suggest any thing
WebSocket connection to 'ws://127.0.0.1:7778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
hi !
i want create chatbox for many group.
1 chatbox for 1 group.
only member of group can see message in this group.
how can do that .
thank
Hi
I added
$emitter = new \Evenement\EventEmitter();
$chat = new \Formativ\Chat\Chat($emitter);
Artisan::add(new Formativ\Chat\Command\Serve($chat));
in app/start/artisan.php to call php artisan chat:serve command but its not working
is this correct to call php artisan chat:serve command?
Names of users are always: 'User'.
why?
as I can fix it?
Correct order of arguments for composer is:
composer create-project --prefer-dist laravel/laravel ./
I have installed HiveMQ and running on my machine, from javascript client am trying to connect, but getiing floowing error WebSocket connection to 'ws://192.168.1.100:8000/mqtt' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED in chrome , below is the code am using
<script src="../bower_components/jquery/dist/jquery.min.js"></script> <script src="../js/mqttws31.js"></script> <script src="../js/mqttws31-min.js"></script> <script src="../js/reconnecting-websocket.js"></script> <script src="../js/reconnecting-websocket.min.js"></script> <script>// Create a client instance
client = new Paho.MQTT.Client("192.168.1.100", 8000, "100");
//var s = new ReconnectingWebSocket("ws://192.168.1.100:1883");
// set callback handlers
client.onConnectionLost = onConnectionLost;
client.onMessageArrived = onMessageArrived;
// connect the client
client.connect({onSuccess:onConnect});
// called when the client connects
function onConnect() {
alert("connected");
// Once a connection has been made, make a subscription and send a message.
console.log("onConnect");
client.subscribe("/World");
message = new Paho.MQTT.Message("Hello");
message.destinationName = "/World";
client.send(message);
}
// called when the client loses its connection
function onConnectionLost(responseObject) {
if (responseObject.errorCode !== 0) {
console.log("onConnectionLost:"+responseObject.errorMessage);
}
}
// called when a message arrives
function onMessageArrived(message) {
console.log("onMessageArrived:"+message.payloadString);
}
</script>
Hello verybody,
I have install real time chat for laravel 4 follow this guide https://medium.com/laravel-4/eaa550829538. I install Ratchet, copy js and css to public. But it doesn't work. do not know what else to do, I do not have experience laravel and websocket.
Thank for your help!
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 ??
Hi,
How can I keep the ws server running on a real webserver?
Hi,
How to save user's message to database or how to save all user's message to show in list message for user view.
Thank you!
Hi,
This is probably a very stupid question, but how do I start the server?
What's the specific artisan command?
Thanks in advance!
edit nevermind, php artisan chat:serve
Thanks anyways! Great stuff!
I try your source at http://l4ember.eu1.frbit.net/
and error (console) "WebSocket is already in CLOSING or CLOSED state."
Can you help me with that ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.