onQueryGroupedChannelsRequest

open suspend fun onQueryGroupedChannelsRequest(limit: Int?, groups: Map<String, GroupedChannelsGroupQuery>?, watch: Boolean, presence: Boolean)

Called before the query grouped channels request is dispatched to the API. Fires regardless of whether the call later succeeds or fails, so the state plugin can persist the request parameters early and recover them even when the response never lands.

Parameters

limit

The request-level default per-group limit, or null for the server default.

groups

The per-group request options being sent, or null when the request asks for the server-defined default set of groups.

watch

Whether watching was requested.

presence

Whether presence was requested.


open suspend fun onQueryGroupedChannelsRequest(limit: Int?, groups: Map<String, GroupedChannelsGroupQuery>?, watch: Boolean, presence: Boolean, sort: QuerySorter<Channel>?)

Called before the query grouped channels request is dispatched to the API, with the requested sort. By default, calls the overload without the sort.

Parameters

limit

The request-level default per-group limit, or null for the server default.

groups

The per-group request options being sent, or null when the request asks for the server-defined default set of groups.

watch

Whether watching was requested.

presence

Whether presence was requested.

sort

The order requested for the channels in every group, or null for the server default.