saltysystems / overworld

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

Enet options #10

Closed cmdrk closed 1 year ago

cmdrk commented 1 year ago

This PR threads ENet-style channels and message types through Overworld, which I'm broadly calling quality of service (QOS).

You can now specify the qos and channels in your rpc_info/0 callback like so:

        #{
            opcode => ?KS_ZONE_JOIN,
            c2s_handler => {?MODULE, join, 2},
            s2c_call => join,
            encoder => ks_pb,
            qos => reliable,
            channel => 0
        },

The WebSocket integration should safely ignore this feature.