saltysystems / overworld

Open source framework for scalable multiplayer games.
Mozilla Public License 2.0
20 stars 3 forks source link

add zlib compression to websocket #16

Open cmdrk opened 11 months ago

cmdrk commented 11 months ago

For ENet, we automatically set compression on the server side:

    % Start ENet
    Options = [
        {peer_limit, ?PEER_LIMIT},
        {channel_limit, ?CHANNEL_LIMIT},
        {compression_mode, zlib}
    ],

And on the client we correspondingly set:

    # Set mode to ZLIB
    _enet_peer.host.compress(ENetConnection.COMPRESS_ZLIB)

We need to do the equivalent thing for WebSocket if possible.