| Package | com.electrotank.electroserver4.message.event |
| Class | public class ConnectionClosedEvent |
| Inheritance | ConnectionClosedEvent EventImpl MessageImpl |
import com.electrotank.electroserver4.ElectroServer;
import com.electrotank.electroserver4.message.MessageType;
import com.electrotank.electroserver4.message.event.ConnectionClosedEvent;
//
var es:ElectroServer;
es.addEventListener(MessageType.ConnectionClosedEvent, "onConnectionClosedEvent", this);
function onConnectionClosedEvent(e:ConnectionClosedEvent):void {
trace("connection closed");
}
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new instance of the ConnectionClosedEvent.
| ConnectionClosedEvent | ||
|
Gets the Connection that was closed.
| ConnectionClosedEvent | ||
![]() |
getIsRealServerMessage():Boolean
Used internally when one client-request needs to be remapped to a server request.
| MessageImpl | |
![]() |
getMessageId():Number
The id of the message.
| MessageImpl | |
![]() |
The type of message being used.
| MessageImpl | |
![]() |
If this is not a real message, then get it.
| MessageImpl | |
![]() |
setIsRealServerMessage(isRealServerMessage:Boolean):void
Used internally when one client-request needs to be remapped to a server request.
| MessageImpl | |
![]() |
setMessageId(id:Number):void
The id of the message.
| MessageImpl | |
![]() |
setMessageType(mt:MessageType):void
This defines the type of message being used, such as LoginRequest or CreateRoomVariableRequest.
| MessageImpl | |
![]() |
Every messages have varying optional fields.
| MessageImpl | |
| ConnectionClosedEvent | () | constructor |
public function ConnectionClosedEvent()Creates a new instance of the ConnectionClosedEvent.
| getConnection | () | method |
public function getConnection():AbstractConnectionGets the Connection that was closed.
ReturnsAbstractConnection —
The Connection class instance that was closed.
|