# Type

enum Type : Enum<Type>

Created by pedro on 21/04/21.

## Entries

STREAM_BEGIN
Link copied to clipboard
STREAM_BEGIN

Type: 0 The server sends this event to notify the client that a stream has become functional and can be used for communication. By default, this event is sent on ID 0 after the application connect command is successfully received from the client.

STREAM_EOF
Link copied to clipboard
STREAM_EOF

Type: 1 The server sends this event to notify the client that the playback of data is over as requested on this stream. No more data is sent without issuing additional commands. The client discards the messages received for the stream.

STREAM_DRY
Link copied to clipboard
STREAM_DRY

Type: 2 The server sends this event to notify the client that there is no more data on the stream. If the server does not detect any message for a time period, it can notify the subscribed clients that the stream is dry.

SET_BUFFER_LENGTH
Link copied to clipboard
SET_BUFFER_LENGTH

Type: 3 The client sends this event to inform the server of the buffer size (in milliseconds) that is used to buffer any data coming over a stream. This event is sent before the server starts processing the stream.

STREAM_IS_RECORDED
Link copied to clipboard
STREAM_IS_RECORDED

Type: 4 The server sends this event to notify the client that the stream is a recorded stream.

PING_REQUEST
Link copied to clipboard
PING_REQUEST

Type: 6 The server sends this event to test whether the client is reachable.

PONG_REPLY
Link copied to clipboard
PONG_REPLY

Type: 7 The client sends this event to the server in response to the ping request.

BUFFER_EMPTY
Link copied to clipboard
BUFFER_EMPTY

Type: 31 (0x1F)

BUFFER_READY
Link copied to clipboard
BUFFER_READY

Type: 32 (0x20)

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<Type>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

mark
Link copied to clipboard
val mark: Byte
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): Type

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<Type>

Returns an array containing the constants of this enum type, in the order they're declared.