- Joined
- May 27, 2008
- Messages
- 3,628 (0.62/day)
System Name | Ultra 64 |
---|---|
Processor | NEC VR4300 (MIPS R4300i) |
Motherboard | proprietary design |
Cooling | Fanless aircooled |
Memory | 4.5MB 250 MHz RDRAM |
Video Card(s) | 62.5 MHz Reality Coprocessor |
Storage | 32 - 512 Mbit ROM Cartridge |
Display(s) | 720x576 |
Case | Clear Blue Funtastic |
Audio Device(s) | 16-bit CD quality |
Power Supply | proprietary design |
Mouse | N64 mouse for use with N64DD |
Keyboard | N64 keyboard for use with N64DD |
Im adding an interpretable file transfer between two NodeJS instances for our application at work.
The laptops connects to the VPN. Currently the trouble were having is it tries to sync up a rather large zip in one go and if the laptop looses WiFi the sync fails. Both the Server and laptop Node instances use socket.io for their portals so im going to chop the file up into chunks, use socket.io to send the chunks and re build it on the server. Then if the WiFi drops the server just drops the chunk if its not complete and asks for it again when the laptop reconnects.
Now my question is do the socket.io events fire only when all data is received? Im using it at the moment to send very small JSON objects the data that will be sent will be up-to 5 meg so much larger. How does socket.io handle situations where the connection is lost before all the data is received on a pending event? Will it drop it and clean up or will it hold on to it?
Hope that all makes sense. Thanks guys n gals.
The laptops connects to the VPN. Currently the trouble were having is it tries to sync up a rather large zip in one go and if the laptop looses WiFi the sync fails. Both the Server and laptop Node instances use socket.io for their portals so im going to chop the file up into chunks, use socket.io to send the chunks and re build it on the server. Then if the WiFi drops the server just drops the chunk if its not complete and asks for it again when the laptop reconnects.
Now my question is do the socket.io events fire only when all data is received? Im using it at the moment to send very small JSON objects the data that will be sent will be up-to 5 meg so much larger. How does socket.io handle situations where the connection is lost before all the data is received on a pending event? Will it drop it and clean up or will it hold on to it?
Hope that all makes sense. Thanks guys n gals.