interface ViewRequestScope The presentation one set of view request handlers belongs to. Created by connectView.
Properties
route
readonly route: string; No documentation.
presentation
readonly presentation: string; The presentation id, which stays the same across reconnects.
live
readonly live: () => boolean; The presentation is not disposed and its route is open.
enabled
readonly enabled: () => boolean; Whether the current connection uses view-requests/1.
connection
readonly connection: () => number; The current connection's number, which changes with each new connection.
Methods
request
request(message: Message): Promise<Reply>; Sends a request of the route.
onPush
onPush(kind: "view-request", handler: (push: Push) => void): () => void; Registers a handler for view-request pushes of the route.
painted
painted(revision: number): Promise<void>; Resolves once the page painted the route at revision or later: the route reached it, its state was delivered to subscribers and one animation frame passed (README, "Painted states", steps 1 to 3).