C# Class Tmds.SockJS.MessageWriter

Afficher le fichier Open project: tmds/Tmds.SockJS Class Usage Examples

Méthodes publiques

Méthode Description
CreateCloseBuffer ( WebSocketCloseStatus status, string description ) : byte[]
CreateCloseMessage ( ReceiverType type, byte closeArray ) : ArraySegment
CreateSendsMessage ( ReceiverType type, List sends ) : ArraySegment
CreateSockJSWebSocketSendMessage ( ArraySegment buffer ) : ArraySegment

Private Methods

Méthode Description
GetSegment ( ) : ArraySegment
MessageWriter ( ) : System
ToArray ( ) : byte[]
WriteArrayEnd ( ) : void
WriteArrayNext ( ) : void
WriteArrayStart ( ) : void
WriteBytes ( byte bytes ) : void
WriteChar ( char c ) : void
WriteCloseMessage ( WebSocketCloseStatus status, string description ) : void
WriteInt ( int i ) : void
WriteJsonString ( ArraySegment segment ) : void
WriteNewline ( ) : void
WriteSends ( List sends ) : void
WriteSockJSWebSocketSend ( ArraySegment buffer ) : void

Method Details

CreateCloseBuffer() public static méthode

public static CreateCloseBuffer ( WebSocketCloseStatus status, string description ) : byte[]
status WebSocketCloseStatus
description string
Résultat byte[]

CreateCloseMessage() public static méthode

public static CreateCloseMessage ( ReceiverType type, byte closeArray ) : ArraySegment
type ReceiverType
closeArray byte
Résultat ArraySegment

CreateSendsMessage() public static méthode

public static CreateSendsMessage ( ReceiverType type, List sends ) : ArraySegment
type ReceiverType
sends List
Résultat ArraySegment

CreateSockJSWebSocketSendMessage() public static méthode

public static CreateSockJSWebSocketSendMessage ( ArraySegment buffer ) : ArraySegment
buffer ArraySegment
Résultat ArraySegment