kaistseo / UnitySocketIO-WebSocketSharp

UnitySocketIO using websocket-sharp instead of WebSocket4Net
164 stars 54 forks source link

Build error with WebPlayer #8

Open RDeluxe opened 10 years ago

RDeluxe commented 10 years ago

Hi !

Tks a lot for this library. I encounter those errors when I switch my project build settings to "webplayer" :

Assets/SocketIO/websocket-sharp/Ext.cs(88,81): error CS1729: The type System.IO.Compression.DeflateStream' does not contain a constructor that takes 3' arguments

Assets/SocketIO/websocket-sharp/Ext.cs(125,83): error CS1729: The type System.IO.Compression.DeflateStream' does not contain a constructor that takes 3' arguments

Assets/SocketIO/websocket-sharp/Net/HttpConnection.cs(115,43): error CS1061: Type WebSocketSharp.Net.Security.SslStream' does not contain a definition for AuthenticateAsServer' and no extension method AuthenticateAsServer' of type WebSocketSharp.Net.Security.SslStream' could be found (are you missing a using directive or an assembly reference?)

I have no problem with Android, IOS, windows, or windows Phone.

I don't have any error in Visual Studio, and a quick checking of the DeflateStream class shows a constructor with 3 arguments ...

I suppose it's because of System.IO not being available with the webplayer. But in this case, does that mean this library does not work with the webplayer at all ?

samirzaee commented 7 years ago

Hi i have the same problem too. when i download and import socket.io package into unity ... i can't move even one step forward ...

PLEASE HELP>>>