Problem with windows compatibility - Receiving unreadable file
First thing to know, we're using socket.io-stream in our encapsulated atom electron version.
On Windows 8.1 (we haven't on other versions), the connection between the client and the server is fine, the events are executed correctly but the file that arrives on the server is corrupted or unreadable.
For example here's a mac object IOStream : IOStream { _events: Object, _eventsCount: 3 _maxListeners: undefined _readable: false _readableState: ReadableState _writable: true _writableState: WritableState allowHalfOpen: false destroyed: true domain: null id: "75f066fe-ccd7-4c6b-8a86-e0df2c91c0be" options: undefined pushBuffer: Array[0] readable: false socket: null writable: false writeBuffer: Array[0] }
here's a windows object IOStream : IOStream { _events: Object, _eventsCount: 6 _maxListeners: undefined _readable: false _readableState: ReadableState _writable: false _writableState: WritableState allowHalfOpen: false destroyed: false domain: null id: "75f066fe-ccd7-4c6b-8a86-e0df2c91c0be" options: undefined pushBuffer: Array[0] readable: true socket: Socket writable: true writeBuffer: Array[1] }
However no problem on mac and linux.
Thanks a lot in advance for your help guys.
Do you mean that Electron on mac and linux are ok ? Are there any other differences like versions of node.js(iojs)?
Yes everything ok. There are no other differences. We've just tested on windows 7 and we have the same problem. I think on windows the object IOStream works differently. Do you have any idea why ? Because right now i cannot stream any file from windows PC
Unfortunately, I have no idea at all. I rather suspect electron and iojs since there is no code to check if it's windows or not on the library.