* Atomically increments and returns a message ID for the next message.
()
| 542 | * Atomically increments and returns a message ID for the next message. |
| 543 | */ |
| 544 | private nextMessageId(): number { |
| 545 | this.messageId += 1; |
| 546 | return this.messageId; |
| 547 | } |
| 548 | |
| 549 | /** |
| 550 | * Set up method for the client's websocket instance. This method will attach event listeners. |