five-on-it / apps/client/src/renderer/net / holdMessages
Function: holdMessages()
holdMessages(
transport):HeldTransport
Defined in: apps/client/src/renderer/net.ts:153
Wraps a transport so that the frames that come between HeldTransport.hold and HeldTransport.release are not lost: they wait, in order, until the game is built and has its receivers, then reach every receiver as live frames do. A page that loads its level from its store or the network after the welcome holds the city's frames (the clock, the weather, the inventory, the missions) and the snapshots that came meanwhile; handed over in the middle of building the game, they would be overwritten by its defaults.