Defined in api/tests/helpers.ts:172
Properties
_queued Responses
Defined in api/tests/helpers.ts:177
last Request
Defined in api/tests/helpers.ts:178
ready State
ready State: number
Defined in api/tests/helpers.ts:174
requests
Defined in api/tests/helpers.ts:175
responses
responses: any
Defined in api/tests/helpers.ts:176
url
url: string
Defined in api/tests/helpers.ts:173
Methods
_auto Reply
_auto Reply( requestId: number ) : void
Returns void
Defined in api/tests/helpers.ts:218
close
close( reason: string , code?: number , wasClean?: boolean ) : void
Parameters
reason: string
code: number = 1000
wasClean: boolean = true
Returns void
Defined in api/tests/helpers.ts:199
message
message( msg: string ) : void
Returns void
Defined in api/tests/helpers.ts:204
onclose
onclose( _params: { code: number ; reason: string ; wasClean: boolean ; } ) : void
Parameters
_params: { code: number ; reason: string ; wasClean: boolean ; }
code: number
reason: string
was Clean: boolean
Returns void
Defined in api/tests/helpers.ts:191
onmessage
onmessage( _params: { data: string ; } ) : void
Parameters
_params: { data: string ; }
Returns void
Defined in api/tests/helpers.ts:192
onopen
onopen( ) : void
Returns void
Defined in api/tests/helpers.ts:190
open
open( ) : void
Returns void
Defined in api/tests/helpers.ts:194
queue Responses
queue Responses( responses: Map < number , Response > ) : void
Returns void
Defined in api/tests/helpers.ts:250
reply
reply( resp: Response ) : void
Returns void
Defined in api/tests/helpers.ts:233
send
send( msg: string ) : void
Returns void
Defined in api/tests/helpers.ts:208
Implement the WebSocket W3C browser API for testing.