WebSocket Module
Types
| Type | Description |
Functions and values
| Function or value | Description |
Full Usage:
chooseSubprotocol subprotocol requestSubprotocols ctx
Parameters:
string
requestSubprotocols : string[]
ctx : HttpContext
Returns: Async<string option>
|
|
Full Usage:
fork f
Parameters:
obj -> unit
|
|
|
|
Full Usage:
handShake continuation ctx
Parameters:
WebSocket -> HttpContext -> SocketOp<unit>
ctx : HttpContext
Returns: Async<HttpContext option>
|
|
Full Usage:
handShakeResponse handShakeToken
Parameters:
string
Returns: HttpContext -> Async<HttpContext option>
|
|
Full Usage:
handShakeTask continuation ctx
Parameters:
WebSocket -> HttpContext -> SocketOp<unit>
ctx : HttpContext
Returns: Task<HttpContext option>
|
|
Full Usage:
handShakeWithSubprotocol choose continuation ctx
Parameters:
string[] -> HttpContext -> Async<string option>
continuation : WebSocket -> HttpContext -> SocketOp<unit>
ctx : HttpContext
Returns: Async<HttpContext option>
|
|
Full Usage:
handShakeWithSubprotocolResponse subprotocol handShakeToken
Parameters:
string
handShakeToken : string
Returns: HttpContext -> Async<HttpContext option>
|
|
Full Usage:
magicGUID
Returns: string
|
|
Full Usage:
readBytes connection n
Parameters:
Connection
n : int
Returns: SocketOp<byte[]>
|
|
Full Usage:
readBytesIntoByteSegment retrieveByteSegment connection n
Parameters:
int -> ByteSegment
connection : Connection
n : int
Returns: SocketOp<ByteSegment>
|
|
|
|
Full Usage:
validateConnectionHeader header
Parameters:
Choice<string, string>
Returns: bool
|
|
Full Usage:
validateHandShake ctx
Parameters:
HttpContext
Returns: Choice<string, Async<HttpContext option>>
|
|
Full Usage:
writeFrame connection f
Parameters:
Connection
f : Frame
Returns: SocketOp<unit>
|
|