Console.answer

Contents

Console.answer#

Console.answer()[source]#

Answer one request of a console, handing reply each message of the answer.

request carries its call and that call’s fields, and the messages are those pulserver console sends over its WebSocket, without the request’s id: one for each call, except that a scan sends its clock, images and texts before {"done": status}. A call that fails, or is not one of the console’s, is answered with {"error": text}. A scan stops once cancelled returns true.