public function trigger($event, $arg1 = null, $arg2 = null)
{
if (null === $this->__fd) {
return false;
}
$args = func_get_args();
array_shift($args);
$obj = new \stdClass();
$obj->type = 'on';
$obj->event = $event;
$obj->args = $args;
$string = RPC\Server::encrypt($obj, static::_getRpcKey()) . RPC\Server::$EOF;
return Server::$server->send($this->__fd, $string, $this->__fromId);
}