getcolumnnames()
– Gets the list of column names. Valid only after successful connect call.
There is no explicit call to close the connection. The connection will be closed when you destroy the Subscriber object.
read_tuple()
– Gets the next message from the stream. The first row returned is always the title row, which contains the names of the fields. This is true even if you connect to a stream that transmits messages to other subscribers. (A stream may have more than one subscriber.)
Note: Calls to read_tuple() are blocking calls. The call will not return until a message is received on the stream.
Returns the tuple object or an undefined value if there are no more messages in the stream or a connection error occurs.