takielias / codeigniter4-websocket

Codeigniter 4 Websocket Built for real-time application
https://ebuz.xyz
MIT License
81 stars 26 forks source link

How do I connect to websocket on another controller and send the message to the client? #13

Open hiagodeoliveiratv opened 9 months ago

hiagodeoliveiratv commented 9 months ago

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){

   }

} `

takielias commented 9 months ago

@hiagodeoliveiratv Could you please check the example project?