topfreegames / pitaya

Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK.
MIT License
2.35k stars 482 forks source link

Data encoding format for websocket communication between vue client and pitaya server #388

Open Tzuhany opened 8 months ago

Tzuhany commented 8 months ago

If I want to use Vue to create a client, what kind of data encoding format should I use to interact with the Pitaya server via WebSocket?

felipejfc commented 5 months ago

your best shot would be trying to compile libpitaya in a way you can interop with it from Vue https://github.com/topfreegames/libpitaya

felipejfc commented 5 months ago

or you can venture yourself in trying to build the WS client using the conn package as reference for protocol https://github.com/topfreegames/pitaya/tree/main/conn