def __create_connection(self, request, isUser=False):
     connection = WebsocketConnection(self.__api_key, self.__secret_key,
                                      self.uri, self.__watch_dog, request)
     if (isUser):
         self.userStreamConnections.append(connection)
     else:
         self.connections.append(connection)
     connection.connect()
 def __create_connection(self, request):
     connection = WebsocketConnection(self.__api_key, self.__secret_key,
                                      self.uri, self.__watch_dog, request)
     self.connections.append(connection)
     connection.connect()