trailing-jsdocs.js 1007 B

1234567891011121314151617181920212223
  1. const CONNECTION_STATUS = exports.CONNECTION_STATUS = {
  2. CLOSED: Object.freeze({ kind: 'CLOSED' }),
  3. CONNECTED: Object.freeze({ kind: 'CONNECTED' }),
  4. CONNECTING: Object.freeze({ kind: 'CONNECTING' }),
  5. NOT_CONNECTED: Object.freeze({ kind: 'NOT_CONNECTED' }) };
  6. /* A comment */ /**
  7. * A type that can be written to a buffer.
  8. */ /**
  9. * Describes the connection status of a ReactiveSocket/DuplexConnection.
  10. * - NOT_CONNECTED: no connection established or pending.
  11. * - CONNECTING: when `connect()` has been called but a connection is not yet
  12. * established.
  13. * - CONNECTED: when a connection is established.
  14. * - CLOSED: when the connection has been explicitly closed via `close()`.
  15. * - ERROR: when the connection has been closed for any other reason.
  16. */ /**
  17. * A contract providing different interaction models per the [ReactiveSocket protocol]
  18. * (https://github.com/ReactiveSocket/reactivesocket/blob/master/Protocol.md).
  19. */ /**
  20. * A single unit of data exchanged between the peers of a `ReactiveSocket`.
  21. */