INNER CODE UNIT · Python

timestamp

dusty-nv/jetson-containers · packages/llm/local_llm/web/server.py:173

            timestamp = time.time() * 1000
         
        encoding = None
        
        if type is None:
            if isinstance(payload, str):
                type = WebServer.MESSAGE_TEXT
                encoding = 'utf-8'
            elif isinstance(payload, bytes):
                type = WebServer.MESSAGE_BINARY
            else:
                type = WebServer.MESSAGE_JSON
                encoding = 'ascii'
        
        if self.websocket is None:
            logging.debug(f"send_message() - no websocket clients connected, dropping {self.msg_type_str(type)} message")
            return
            

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…