ElephantIO\Engine\AbstractSocketIO::getDefaultOptions PHP Method

getDefaultOptions() protected method

Get the defaults options
protected getDefaultOptions ( ) : array
return array mixed[] Defaults options for this engine
    protected function getDefaultOptions()
    {
        return ['context' => [], 'debug' => false, 'wait' => 100 * 1000, 'timeout' => ini_get("default_socket_timeout")];
    }

Usage Example

Esempio n. 1
0
 /** {@inheritDoc} */
 protected function getDefaultOptions()
 {
     $defaults = parent::getDefaultOptions();
     $defaults['version'] = 2;
     $defaults['use_b64'] = false;
     $defaults['transport'] = static::TRANSPORT_POLLING;
     return $defaults;
 }
All Usage Examples Of ElephantIO\Engine\AbstractSocketIO::getDefaultOptions