takielias / codeigniter4-websocket

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

Event callback is not called #11

Open mohammadaliahmed opened 2 years ago

mohammadaliahmed commented 2 years ago

public function _event($datas = null) { // Here you can do everyting you want, each time message is received echo 'Hey ! I\'m an EVENT callback' . PHP_EOL; }

This event functions is not called in Websocket.php Please guide me. I need messages in my controller on new message received

takielias commented 2 years ago

Could you please take a look at this example please?