A WebsocketBuffer is used to store messages temporarily until they can be sent.
Adds an element to the buffer.
the element to add
Reads an element from the buffer.
an element from the buffer or undefined if the buffer is empty
A WebsocketBuffer is used to store messages temporarily until they can be sent.