Home Reference Source

src/datapipe/DataPipeStatus.js

import {Enum} from '../utils/Enum';

/**
 * Enum containing the possible states of a datapipe. Possible values:
 * - UNCONNECTED
 * - CONNECTING: pipe has initiated an attempt to connect to remote parties.
 * - CONNECTED: pipe is connected and ready to send/receive data.
 * - REJECTED: an attempt to connect a pipe is explicitly rejected by the remote party..
 * - DISCONNECTED: pipe is disconnected.
 * @type {Enum}
 */
export const DataPipeStatus = Enum([
	'UNCONNECTED',
	'CONNECTING',
	'CONNECTED',
	'REJECTED',
	'DISCONNECTED',
]);