Skip to content

Latest commit

 

History

History
212 lines (117 loc) · 5.99 KB

File metadata and controls

212 lines (117 loc) · 5.99 KB

@epicgames-ps/lib-pixelstreamingsignalling-ue5.5 / StreamerConnection / StreamerConnection

Class: StreamerConnection

StreamerConnection.StreamerConnection

A connection between the signalling server and a streamer connection. This is where messages expected to be handled by the streamer come in and where messages are sent to the streamer.

Interesting internals: streamerId: The unique id string of this streamer. transport: The ITransport where transport events can be subscribed to protocol: The SignallingProtocol where signalling messages can be subscribed to. streaming: True when the streamer is ready to accept subscriptions.

Hierarchy

  • EventEmitter

    StreamerConnection

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new StreamerConnection(server, ws, remoteAddress?): StreamerConnection

Initializes a new connection with given and sane values. Adds listeners for the websocket close and error and will emit a disconnected event when disconneted.

Parameters

Name Type Description
server SignallingServer The signalling server object that spawned this streamer.
ws WebSocket The websocket coupled to this streamer connection.
remoteAddress? string The remote address of this connection. Only used as display.

Returns

StreamerConnection

Overrides

EventEmitter.constructor

Defined in

StreamerConnection.ts:48

Properties

protocol

protocol: SignallingProtocol

Implementation of

IStreamer.protocol

Defined in

StreamerConnection.ts:33


remoteAddress

Optional remoteAddress: string

Defined in

StreamerConnection.ts:37


streamerId

streamerId: string

Implementation of

IStreamer.streamerId

Defined in

StreamerConnection.ts:29


streaming

streaming: boolean

Implementation of

IStreamer.streaming

Defined in

StreamerConnection.ts:35


transport

transport: ITransport

Implementation of

IStreamer.transport

Defined in

StreamerConnection.ts:31

Methods

getReadableIdentifier

getReadableIdentifier(): string

Returns an identifier that is displayed in logs.

Returns

string

A string describing this connection.

Implementation of

IMessageLogger.getReadableIdentifier

Defined in

StreamerConnection.ts:68


getStreamerInfo

getStreamerInfo(): IStreamerInfo

Returns a descriptive object for the REST API inspection operations.

Returns

IStreamerInfo

An IStreamerInfo object containing viewable information about this connection.

Implementation of

IStreamer.getStreamerInfo

Defined in

StreamerConnection.ts:83


sendMessage

sendMessage(message): void

Sends a signalling message to the player.

Parameters

Name Type Description
message BaseMessage The message to send.

Returns

void

Implementation of

IStreamer.sendMessage

Defined in

StreamerConnection.ts:74