src/FreeDSx/Socket/SocketServer.php
public static function bind(string $ip, int $port, array $options = []) : SocketServer
    {
        return (new self($options))->listen($ip, $port);
    }
public static function bind(string $ip, int $port, array $options = []) : SocketServer
    {
        return (new self($options))->listen($ip, $port);
    }
public static function bind ( string $ ip , int $ port , array $ options = [ ] ) : SocketServer { return ( new self ( $ options ) ) -> listen ( $ ip , $ port ) ; }
Create the socket server. Binds and listens on a specific port

@param string $ip
@param int $port
@param array $options
@return $this
@throws ConnectionException
Create the socket server . Binds and listens on a specific port