Package-level declarations
Types
Special Middleware to use in at http API to provide an authentication for every request. The type-parameter P represents the principal information, which contains all login-information needed to authenticate against the external HTTP API. The principal information is held inside and available as flow by calling data. To use this Middleware you need to implement the addAuthentication method, where you get the principal information, when available, to add it to your requests. To implement the client side of authentication process you also need to implement the authenticate method in which you specify what is needed to authenticate the user (e.g. open up a login modal). When your authentication process is done you have to call the complete function and set your principal. Then all requests, that have been initialized while the authentication was running, will be re-executed with the additional authentication information provided by the addAuthentication method. When the user logs out you have to call the clear function to clear all authentication information.
Exception for handling errors with closing
Exception for handling errors with connecting
interface to do interceptions at http calls. It can modify each request and handles all responses in a specified way.
Represents the common fields and attributes of an HTTP request.
Exception for handling errors with sending
SessionState represents the actual state of the websocket connection. After connection is established it changes from SessionState.Connecting to SessionState.Open and when connection is closed it is SessionState.Closed.
Properties
gives the MessageEvent.data as Flow of ArrayBuffer
gives the MessageEvent.data as Flow of Blob
gives the MessageEvent.data as Flow of String
gives a Flow of CloseEvent when Session closes
gives the MessageEvent.data as Flow of Any
gives a Flow of Boolean when SessionState is SessionState.Closed
gives a Flow of Boolean when SessionState is SessionState.Connecting
gives a Flow of Boolean when SessionState is SessionState.Open