onServerRequest property

ServerRequestHandler? onServerRequest
getter/setter pair

Optional handler for requests the server sends to the client. When null, such requests are answered with a methodNotFound error.

Implementation

ServerRequestHandler? onServerRequest;