code: def _create_socket(self):
          
          s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
          s = ssl.wrap_socket(s)
          s.connect((self.host, self.__port))
          s.settimeout(self.timeout)
          return s
docs: Creates ssl socket, connects to stream api and
          sets timeout.