Glossary: Real-Time Apps with WebSockets
waitFor()
Also written: waitFor, socket.once
A small test helper that turns "the next time this event arrives" into a Promise you can `await`. Start waiting before the action that causes the event.
Glossary: Real-Time Apps with WebSockets
Also written: waitFor, socket.once
A small test helper that turns "the next time this event arrives" into a Promise you can `await`. Start waiting before the action that causes the event.