C# Class Fleck.Handlers.Hybi13Handler

Show file Open project: directi/Fleck Class Usage Examples

Public Methods

Method Description
BuildHandshake ( WebSocketHttpRequest request ) : byte[]
Create ( WebSocketHttpRequest request, Action onMessage, System.Action onClose, Action onBinary ) : IHandler
CreateResponseKey ( string requestKey ) : string
FrameData ( byte payload, FrameType frameType ) : byte[]
ProcessFrame ( FrameType frameType, byte data, Action onMessage, System.Action onClose, Action onBinary ) : void
ReceiveData ( List data, ReadState readState, byte[]>.Action processFrame ) : void

Private Methods

Method Description
ReadUTF8PayloadData ( byte bytes ) : string

Method Details

BuildHandshake() public static method

public static BuildHandshake ( WebSocketHttpRequest request ) : byte[]
request WebSocketHttpRequest
return byte[]

Create() public static method

public static Create ( WebSocketHttpRequest request, Action onMessage, System.Action onClose, Action onBinary ) : IHandler
request WebSocketHttpRequest
onMessage Action
onClose System.Action
onBinary Action
return IHandler

CreateResponseKey() public static method

public static CreateResponseKey ( string requestKey ) : string
requestKey string
return string

FrameData() public static method

public static FrameData ( byte payload, FrameType frameType ) : byte[]
payload byte
frameType FrameType
return byte[]

ProcessFrame() public static method

public static ProcessFrame ( FrameType frameType, byte data, Action onMessage, System.Action onClose, Action onBinary ) : void
frameType FrameType
data byte
onMessage Action
onClose System.Action
onBinary Action
return void

ReceiveData() public static method

public static ReceiveData ( List data, ReadState readState, byte[]>.Action processFrame ) : void
data List
readState ReadState
processFrame byte[]>.Action
return void