toggle menu
apollo-kdoc
4.0.0-beta.7-SNAPSHOT
4.0.0-beta.7-SNAPSHOT
3.8.2
common
switch theme
search in API
apollo-testing-support
/
com.apollographql.apollo3.testing
/
MockServerWebSocketTest
Mock
Server
Web
Socket
Test
@
ApolloExperimental
class
MockServerWebSocketTest
(
val
apolloClient
:
ApolloClient
,
mockServer
:
MockServer
,
val
coroutineScope
:
CoroutineScope
)
Members
Constructors
Mock
Server
Web
Socket
Test
Link copied to clipboard
constructor
(
apolloClient
:
ApolloClient
,
mockServer
:
MockServer
,
coroutineScope
:
CoroutineScope
)
Properties
apollo
Client
Link copied to clipboard
val
apolloClient
:
ApolloClient
coroutine
Scope
Link copied to clipboard
val
coroutineScope
:
CoroutineScope
server
Reader
Link copied to clipboard
val
serverReader
:
WebsocketMockRequest
server
Writer
Link copied to clipboard
val
serverWriter
:
WebSocketBody
Enqueue the response straight away
Functions
await
Connection
Init
Link copied to clipboard
suspend
fun
awaitConnectionInit
(
)
await
Web
Socket
Request
Link copied to clipboard
suspend
fun
awaitWebSocketRequest
(
)