4.x is outdated, please check the latest version 22.x
pecl install openswoole-22.0.0
Returns an array, showing its host and port that is being used by the socket.
Get the local socket name of the connection. Returns the host and port. You must be connected before using this method.
'host' => '127.0.0.1', 'port' => 53652,