Set a partial function for the request processing handler for the connection.
Set a partial function for the request processing handler for the connection. Any request that
falls through the handler will be automatically converted into an error
response with a UnhandledRequestException
as the cause
Get current info about the connection
Immediately terminate the connection.
Immediately terminate the connection. Note that requests that are in the middle of being processed will continue processing although their final response will be discarded.
Terminate the connection, but allow any existing outstanding requests to complete processing before disconnecting.
Terminate the connection, but allow any existing outstanding requests to complete processing before disconnecting. Any new requests that come in will be automatically completed with an error.
Attach a handler for non-recoverable errors.
Attach a handler for non-recoverable errors. This includes uncaught exceptions, unhandled requests, request timeouts, and other server-level errors. In every case, this handler should not attempt to actually process the request, but instead simply return an appropriately formatted error response.
Set the handler for actor messages intended for this connection.
Gets the sender of the current message being processed in the receive handler
Set a function for the request processing handler for the connection
This contains methods to interact with an individual connection.