Skip to content

Add OnServerStopped event #2327

Closed
Closed
@RikuTheFuffs

Description

@RikuTheFuffs

Description

Hi, I noticed that in NetworkManager we have an event for when a client connects / disconnects, but for the server we only have the "started" one.

public event Action<ulong> OnClientConnectedCallback;
public event Action<ulong> OnClientDisconnectCallback;
public event Action OnServerStarted;

Solution I'd like

Would it make sense to add an OnServerStopped event, so that applications can do specific operations when a server instance is stopped but the application is still running?

public event Action OnServerStopped;

Additional context:

This could be useful to send analytics, do cleanups, etc...

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature, request or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions