[**simplex-chat**](README.md) *** [simplex-chat](README.md) / [core](Namespace.core.md) / chatRecvMsgWait # Function: chatRecvMsgWait() > **chatRecvMsgWait**(`ctrl`, `wait`): `Promise`\<`ChatEvent` \| `undefined`\> Defined in: [src/core.ts:37](../src/core.ts#L37) Receive chat event ## Parameters ### ctrl `bigint` ### wait `number` ## Returns `Promise`\<`ChatEvent` \| `undefined`\>