Category : chat

I could connect with the socket with the below code. Laravel version ^7.29 It’s showing connected equal false. socket Socket {connected: false, disconnected: true} NOT WORKING CODE WITH 4.4.0 <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.0/socket.io.js"></script> <script> const socket_laravel = io(‘http://127.0.0.1:1234’); </script> WORKING CODE WITH 2.1.0 <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.0/socket.io.js"></script> <script> const socket_laravel = io(‘http://127.0.0.1:1234’); </script> Sourc..

Read more

BotMan Version: 2.6.1 PHP Version: 7.3|8.0 Messaging Service(s): Web Cache Driver: Laravel Description: I tried to delete the last bot message. How can I Do this? Steps To Reproduce: I used ask method to get answer id $this->ask(‘Ask me something?’ function($answer){ $this->say(json_encode($this->bot->getMessage()->getPayload())); }) And got this result: {"driver":"web","userId":"mceiov","message":"ru","attachment":"null","interactive":"1"} To send delete request I need message ..

Read more

We are implementing a custom chat in an web application using laravel and pusher. The basic functionalities like sending and receving messages with file sharing was working perfectly fine for few days but all of a sudden we encountered an error as follows: "message": "cURL error 60: SSL: no alternative certificate subject name matches target ..

Read more

I have created a laravel chat application using ajax. But didn’t get any proper query for chat pagination. I need idea to do this $data[‘messages’] = Chat::where(function($q) use($id){ $q->where(‘from’,auth()->user()->id); $q->where(‘to’,$id); })->orWhere(function($q) use ($id){ $q->where(‘from’,$id); $q->where(‘to’,auth()->user()->id); })->with(‘user’, ‘userto’)->get(); didn’t get any code from google. Sourc..

Read more

Does not display messages in real time, only displayed in one window Events class Message implements ShouldBroadcast { use Dispatchable, InteractsWithSockets, SerializesModels; public $message; /** * Create a new event instance. * * @return void */ public function __construct($message) { $this->message = $message; $this->dontBroadcastToCurrentUser(); } /** * Get the channels the event should broadcast on. ..

Read more

I am trying to implement laravel-websockets package for real time chat application. https://github.com/beyondcode/laravel-websockets I have successfully configured and started the the server php artisan websockets:serve I want to run this server independently and have created a new laravel project for chat. The thing I don’t understand is where to write the code to save messages ..

Read more