volatile property

Socket volatile

Sets a modifier for a subsequent event emission that the event message will be dropped when this socket is not ready to send messages.

@example socket.volatile.emit("hello"); // the server may or may not receive it

@returns self

Implementation

Socket get volatile {
  flags['volatile'] = true;
  return this;
}