Перейти к содержанию

Contact

any: contact:pop

contact:pop()

Returns the last value from the contact's local queue.

contact:push

contact:push(any: value)

Pushes new value to the contact's global queue.

contact:bind

contact:bind(function: func)

Binds a callback function to the contact object. The callback function will be called when the local queue is updated (received a new value).

int: contact:avail

contact:avail()

Returns number of available values in the contact's local queue.

contact:clear

contact:clear()

Clears the contact's local queue.

contact:close

contact:close()

Closes connection to the contact.