Open allaud opened 9 years ago
Hmm,,, unfortunately, that compression extension seems not to be available in Unity for Windows.
One good idea is to use SharpZipLib - it is a pure C# implementation of zip. What do you think,
I guess to use another compression library such as SharpZipLib is a workaround for that error, but i don't plan to use it in websocket-sharp for now.
What can i do to fix this issue in windows?
@FREEZX I have a question on SO, maybe you can try something suggested: http://stackoverflow.com/questions/29622743/zip-compression-support-in-unity
Also, our team already solved the problem of data compression. We changed suggested deflate algorithm (which doesn't have good implementation for Unity) with LZMA algo (implementation can be found here: http://www.7-zip.org/sdk.html)
@allaud I ended up just disabling compression altogether by setting base.IgnoreExtensions = true;
in the constructor of my websocketbehavior object, and it works great.
FYI: this is also a problem with the latest Chrome release and RC3. Previously worked but WebSocketServer now blows up receiving deflated data from our Chrome app.
FREEZX solution base.IgnoreExtensions = true works...for now.
Same here :S
The thing is that System.IO.DeflateStream is used. And it uses system implementation if gzip (thats why it doesn't work on Windows at least). One good idea is to use SharpZipLib - it is a pure C# implementation of zip. What do you think, @sta ?