Server class Null safety
The core of the package. This creates the websocket server that listens for incoming commands and passes them off to associated handlers, either internal or external.
This requires an
authenticator to perform the authentication for the
authorizer allows for authorizing commands against clients.
If not set, the default authorizer allows all commands from all clients.
Custom servers needing specialized commands can pass in command handlers via
onDone callback allows custom servers the ability to be
notified when a socket is closed.
Finally the port parameter provides the application with the ability to specify the port to listen on.