codeigniter4-websocket
codeigniter4-websocket copied to clipboard
How do I connect to websocket on another controller and send the message to the client?
Can you show what it would be like to send a message to the client directly from another controller? Something like that `<?php
namespace App\Controllers; use WebSocket\Client;
class Dashboard extends BaseController { protected function sendNotification($id_user, $message){
}
} `
@hiagodeoliveiratv Could you please check the example project?