(id: string | number | null)
| 385 | } |
| 386 | |
| 387 | function createResponseQueueKey(id: string | number | null): string { |
| 388 | if (id === null) { |
| 389 | return 'res-unknown-' + (++unknownResponseSquenceNumber).toString(); |
| 390 | } else { |
| 391 | return 'res-' + id.toString(); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | function createNotificationQueueKey(): string { |
| 396 | return 'not-' + (++notificationSquenceNumber).toString(); |