def __init__(self, stream, timeout=None): StreamIO.__init__(self) self.session = stream.session self.stream = stream if not timeout: timeout = self.session.options.get("stream-timeout") self.timeout = timeout
def __init__(self, stream, timeout=None, **kwargs): StreamIO.__init__(self) self.stream = stream self.session = stream.session self.timeout = timeout if timeout else self.session.options.get("stream-timeout") self.buffer = None if logger.root.level <= logger.DEBUG: websocket.enableTrace(True, log)