Methods
answer
- answer(type: string, id: string, payload: Body): Promise<Record<string, any>>
-
Parameters
-
type: string
-
id: string
-
payload: Body
Returns Promise<Record<string, any>>
answerWaitingResponse
- answerWaitingResponse(type: string, id: string, payload: Record<string, any>): Promise<Record<string, any>>
-
Parameters
-
type: string
-
id: string
-
payload: Record<string, any>
Returns Promise<Record<string, any>>
cancel
- cancel(type: string, id: string, payload: Body): Promise<Record<string, any>>
-
Parameters
-
type: string
-
id: string
-
payload: Body
Returns Promise<Record<string, any>>
cleanPendingWithId
- cleanPendingWithId(id: string): void
-
Returns void
request
- request(type: string, id: string, body: Body, retry?: number): Promise<Record<string, any>>
-
Parameters
-
type: string
-
id: string
-
-
Optional
retry: number
Returns Promise<Record<string, any>>
waitAnserWithId
- waitAnserWithId(id: string): Promise<Record<string, any>>
-
Returns Promise<Record<string, any>>
waitAnswerWithInviteId
- waitAnswerWithInviteId(id: string): Promise<Record<string, any>>
-
Returns Promise<Record<string, any>>
Send an answer to server with given data.
Throws
if server returns an error