public function emit($event, array $args)
{
$namespace = $this->namespace;
if ('' !== $namespace) {
$namespace .= ',';
}
return $this->write(EngineInterface::MESSAGE, static::EVENT . $namespace . json_encode([$event, $args]));
}