Listener
-
http
:
Listener
This is used for creating HTTP server endpoints. An HTTP server endpoint is capable of responding to
remote callers. The Listener is responsible for initializing the endpoint using the provided configurations.
Methods
Stops the service listener gracefully.
Stops the service listener immediately.
Detaches a Http or WebSocket service from the listener.
LifeCycle Methods
Methods
Stops the service listener gracefully. Already-accepted requests will be served before connection closure.
-
Return Type
(error?) An
errorif an error occurred during the listener stopping process
Stops the service listener immediately. It is not implemented yet.
-
Return Type
(error?) An
errorif an error occurred during the listener stop process
Detaches a Http or WebSocket service from the listener. Note that detaching a WebSocket service would not affect The functionality of the existing connections.
Parameters
- s service
-
The service to be detached
-
Return Type
(error?) An
errorif one occurred during detaching of a service or else()
LifeCycle Methods
Starts the registered service programmatically.
-
Return Type
(error?) An
errorif an error occurred during the listener starting process
Attaches a service to the listener.
Parameters
- s service
-
The service that needs to be attached
- name string? (default ())
-
Name of the service
-
Return Type
(error?) An
erroran error occurred during the service attachment process or else nil