A small question about using this library. I would have a class like following:
class foo{
private $callback1;
private $callback2;
...
function __construct($cb1, $cb2){
$this->callback1 = $cb1;
$this->callback2 = $cb2;
}
public function global_callback(){
if (...) $this->callback1(arg1, arg2);
if (...) $this->callback1(arg1, arg2);
}
}
Is there a way to register function global_callback() as an onMessage callback?
Hello,
A small question about using this library. I would have a class like following:
Is there a way to register function
global_callback()
as anonMessage
callback?