(
connection: Party.Connection,
msg: string | ArrayBuffer | ArrayBufferView
)
| 685 | } |
| 686 | |
| 687 | async invokeOnMessage( |
| 688 | connection: Party.Connection, |
| 689 | msg: string | ArrayBuffer | ArrayBufferView |
| 690 | ) { |
| 691 | assert(this.worker, "[onMessage] Worker not initialized."); |
| 692 | return this.worker.onMessage(msg, connection); |
| 693 | } |
| 694 | |
| 695 | async alarm() { |
| 696 | if (!this.worker) { |
no test coverage detected