Skip to content

Create extra hook functions for start, in-between and end-states #20

@mostafa

Description

@mostafa

As stated in this #19 (comment), these hook functions should be created:

  1. OnTraffic: passes data between the client and server. Callbacks for incoming and outgoing traffic are called here.
  2. OnShutdown: shutdown the server, effectively cleaning everything up.
  3. OnTick: fires a function every n seconds.
  4. onConfigLoaded: the configuration is loaded.
  5. onNewLogger: a new logger is created.
  6. onNewPool: a new pool is created.
  7. onNewProxy: a new proxy is created.
  8. onNewServer: a new server is created.
  9. onNewClient: a new client is created.
  10. onSignal: a new signal is caught.
  11. onRun: the server is run.
  12. onBooting: the boot sequence is starting.
  13. onBooted: the boot sequence is finished.
  14. onOpenning: a new connection is just opened.
  15. onOpened: the connection is opened.
  16. onClosing: the connection is being closed.
  17. onClosed: the connection is closed.
  18. onIncomingTraffic: incoming traffic from clients (to server).
  19. onOutgoingTraffic: outgoing traffic to clients (from server).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

🎉 Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions