def construct_url(self, style):
if style is API_URL:<EOL><INDENT>if self._ssl:<EOL><INDENT>return '<STR_LIT>'.format(self._host, self._port)<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'.format(self._host, self._port)<EOL><DEDENT><DEDENT>elif style is SOCKET_URL:<EOL><INDENT>if self._ssl:<EOL><INDENT>return '<STR_LIT>'.format(self._host, self._port)<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'.format(self._host, self._port)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Return http/https or ws/wss url.