Skip to content

Add `on` method to ServerSocketWrapper

When an event is called and the relative function executed, the socket wrapper that is given to the function doesn't have the on method. Having the on method allows to only listen to that event for a particular client.
In order to apply this change you must:

  • save the client_id for any event in the ServerEventManager
  • when a client emits that event, seek for the one with the correct client_id