Comments (4)
Solution is here: #13
from colyseus-unity-sdk.
@quanglam68 suggested in the Gitter channel to use this MsgPack implementation instead https://github.com/deniszykov/msgpack-unity3d
Hi, I found a solution to bypass the webgl pb with msgpack (#5 ) : I use another lib just for packing data to send (https://www.assetstore.unity3d.com/en/#!/content/59918 )
so in client.cs function Send, uncomment current code and put the following
MemoryStream stream = new MemoryStream();
GameDevWare.Serialization.MsgPack.Serialize<object[]>(data,stream);
this.ws.Send(stream.ToArray());
on webgl export the client is sending/receiving message correctly
from colyseus-unity-sdk.
By changing the MsgPack implementation to we would need to adapt/rewrite the DeltaListener class.
from colyseus-unity-sdk.
Thanks @derwish-pro! Version 0.5.0 now has your implementation https://github.com/gamestdio/colyseus-unity3d/releases/tag/0.5.0
from colyseus-unity-sdk.
Related Issues (20)
- Can not export to WebGL
- Domain Reload support
- JsonSerializationException: Unable to deserialize instance of 'BgDataMessage' for iOS on device.. HOT 7
- Schema Backward Compatibility not working as expected HOT 2
- colyseus-unity-sdk-0.14.20 schema-codegen bug. HOT 3
- Problems with lobbyRoom and ColyseusRoomAvailable. HOT 4
- colyseus-unity-sdk-0.14.15 ->18 Example Error. HOT 2
- schema lost in reconnection situation HOT 2
- The 'onMesssage' in file 'Assets/Colyseus/Runtime/WebSocket/WebSocket.jslib' is wrong
- Colyseus.MatchMakeException: Unexpected end of JSON input HOT 2
- ColyseusManager destroy game object unexpected or have multiple instance when change scene HOT 3
- Unable to Join GameRoom after migrating to 0.15.3 Version Unity HOT 3
- Make OnJoin private
- OnStateChange Called When Current Value And Previous Values are same HOT 4
- about 0.15 state.player.listen("field", (value)) HOT 3
- ColyseusRoom.OnMessage<> throws exception if the sessionId exists
- Fixing ReconnectionToken Handling in Colyseus Unity SDK(Version 0.15.8) (FIXED)
- Imported UPM sample project has a compile error HOT 3
- Reflection and serialization issues between classes with the same number and type of fields HOT 4
- Error handing issue when reconnecting with expired session token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colyseus-unity-sdk.