ElephantIO\Engine\SocketIO\Version1X::emit PHP Method

emit() public method

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