(message: Message | undefined)
| 356 | * Tests if the given message is a request message |
| 357 | */ |
| 358 | export function isRequestMessage(message: Message | undefined): message is RequestMessage { |
| 359 | let candidate = <RequestMessage>message; |
| 360 | return candidate && is.string(candidate.method) && (is.string(candidate.id) || is.number(candidate.id)); |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * Tests if the given message is a notification message |
no outgoing calls
no test coverage detected