Connect to Datalynk & send requests
API URL
ReadonlyauthAuthentication
OptionaldatabaseOffline database
ReadonlyfilesFile
ReadonlygpsGPS
Backwards-compatible boolean connection state.
false includes offline, unauthorized, and unavailable states.
Options
ReadonlyoriginAPI URL
ReadonlypdfReadonlypwaPWA setup & prompt
Created slices
ReadonlysocketSocket
Detailed API connection state.
Subscribe to this when callers need to distinguish physical/network offline state from authentication failure or server/API unavailability.
ReadonlysuperuserSuperuser
API Session token
API URL
Client library version
ReadonlywebrtcWebRTC
StaticversionClient library version
Is token expired
Get session info from JWT payload
Whether normal Datalynk API access is currently unavailable.
This is the inverse of online. It can be true while the browser
still has Internet access, for example during MySQL/HTTP 5xx recovery.
Whether normal Datalynk network requests are currently available.
This becomes false for network outages, rejected/expired sessions, and
request-owned server recovery. It therefore describes Datalynk
availability rather than only navigator.onLine.
Override the boolean connection state.
Set true or false to force the corresponding state. Set null to
remove the override and resume normal connection checking. This is a
manual override and can supersede the current recovery state, so normal
applications should generally observe status instead of forcing it.
Whether authentication expired while offline and must be renewed before replaying queued work.
Logged in spoke
Current detailed Datalynk API connection state.
Chain multiple requests to execute together
List of requests to chain
API Response
Organize multiple requests into a single mapped request
Map of requests
Map of API Responses
Lazily load and construct chat. No chat code or requests run before this call.
Exact same as the request method, but logs the response in the console automatically
Datalynk request as object or string
Optionaloptions: ApiRequestOptionsDatalynk response
Exact same as the request method, but logs the response in the console automatically
Datalynk request as object or string
Datalynk response
Get list of slices
Lazily load, authorize, and open the reusable chat window.
Send a request to Datalynk
Request using Datalynk API syntax. Strings will be converted: '$/auth/current' -> {'$/auth/current': {}}
Optionaloptions: ApiRequestOptionsDatalynk response or error
Send a request to Datalynk
Request using Datalynk API syntax. Strings will be converted: '$/auth/current' -> {'$/auth/current': {}}
Datalynk response or error
Connect to Datalynk & send requests