class NetConnectionChannel
package feathers.messaging.channels
extends PollingChannel › Channel
extended by AMFChannel
This NetConnectionChannel provides the basic NetConnection support for messaging. The AMFChannel and RTMPChannel both extend this class.
Constructor
new(?id:String, ?uri:String)
Creates a new NetConnectionChannel instance.
The underlying NetConnection's objectEncoding
is set to ObjectEncoding.AMF3
by default. It can be
changed manually by accessing the channel's netConnection
property. The global NetConnection.defaultObjectEncoding
setting is not honored by this channel.
Parameters:
id | The id of this Channel. |
---|---|
uri | The uri for this Channel. |
Variables
read onlynetConnection:AMFNetConnection
Provides access to the associated NetConnection for this Channel.
Methods
AppendToGatewayUrl(value:String):Void
Special handler for legacy AMF packet level header "AppendToGatewayUrl". When we receive this header we assume the server detected that a session was created but it believed the client could not accept its session cookie, so we need to decorate the channel endpoint with the session id.
We do not modify the underlying endpoint property, however, as this session is transient and should not apply if the channel is disconnected and re-connected at some point in the future.