bluesky_queueserver.ReceiveConsoleOutput.recv

ReceiveConsoleOutput.recv(timeout=-1)[source]

Get the next published message. The function subscribes the socket to 0MQ topic if the socket is not already subscribed. If timeout expires then TimeoutError is raised.

Parameters:
timeoutint, float or None

Timeout for the receive operation in milliseconds. If timeout is a negative number (default), the timeout value passed to the class constructor is used. If None, then wait indefinitely.

Returns:
dict

Received message. The dictionary contains timestamp (time key) and text message (msg key).

Raises:
TimeoutError

Timeout occurred. Timeout does not indicate communication error.