Skip to content

server side disconnect function #4941

@xDovos

Description

@xDovos

we need a way to disconnect bad actors clients from the server side with a ctx.disconnect_sender() function that can be called in any reducer or procedure. this is needed because throwing an Error is not always a good option.
like if i want to "ban" a client by inserting it into a ban table, i also need a way to actually disconnect the client i just banned. i can't rely on a client side disconnect flow as the bad actor most likely just removed the flow while inserting the cheats or whatever they did to be banned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions