C# Class Fleck.Handlers.Draft76Handler

显示文件 Open project: directi/Fleck Class Usage Examples

Public Methods

Method Description
CalculateAnswerBytes ( string key1, string key2, ArraySegment challenge ) : byte[]
Create ( WebSocketHttpRequest request, Action onMessage ) : IHandler
FrameText ( string data ) : byte[]
Handshake ( WebSocketHttpRequest request ) : byte[]
ReceiveData ( Action onMessage, List data ) : void

Private Methods

Method Description
ParseKey ( string key ) : byte[]

Method Details

CalculateAnswerBytes() public static method

public static CalculateAnswerBytes ( string key1, string key2, ArraySegment challenge ) : byte[]
key1 string
key2 string
challenge ArraySegment
return byte[]

Create() public static method

public static Create ( WebSocketHttpRequest request, Action onMessage ) : IHandler
request WebSocketHttpRequest
onMessage Action
return IHandler

FrameText() public static method

public static FrameText ( string data ) : byte[]
data string
return byte[]

Handshake() public static method

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

ReceiveData() public static method

public static ReceiveData ( Action onMessage, List data ) : void
onMessage Action
data List
return void