KsNotification
Marks a KsMethod function as a JSON-RPC-style notification (fire-and-forget, no response expected).
When a method is annotated with both KsMethod and KsNotification, transports that support notification semantics (e.g. jsonrpc) will send the call without an id and will not wait for or send a response. Transports without notification semantics (HTTP, sockets, etc.) ignore this annotation and treat the call as a normal Unit-returning request.
The compiler plugin will emit an error if KsNotification is applied to a method whose return type is not Unit — notifications by definition have no reply.
This annotation replaces the previous heuristic where any Unit-returning method was implicitly treated as a notification. With KsNotification, Unit-returning methods without this annotation are treated as normal requests that happen to return Unit.