@holochain/client
Advanced tools
Changelog
2024-04-27: v0.17.0-dev.12
Changelog
2024-04-26: v0.17.0-dev.11
Appwebsocket.connect()
to take a single parameter AppWebsocketConnectionOptions
that includes the AppAuthenticationToken
as an optional property. The AppAuthenticationToken
can be omitted if it is provided by the window.__HC_LAUNCHER_ENV__
variable.signZomeCallTauri
and signZomeCallElectron
have been removed. Runtimes like Launcher now mandatorily need to provide a window.__HC_ZOME_CALL_SIGNER__
object to have zome calls be automatically signed.attachAppInterface
to bind the app interface to a specific app.listAppInterfaces
now returns a list of AppInterfaceInfo
instead of a list of ports.Changelog
2024-04-25: v0.17.0-dev.10
AdminWebsocket#issueAppAuthenticationToken
.AppWebsocket
class. Following the addition of the
authentication token, the two types were well enough aligned that there was no longer a need to keep them separate.InstalledAppId
no longer require one because the websocket will
be authenticated with an app already, so the app interface no longer requires you to tell it which app you are calling.Changelog
2024-04-16: v0.17.0-dev.9
127.0.0.1
by localhost
.Changelog
2024-04-05: v0.17.0-dev.8
origin
parameter when establishing app websocket connections to protect localhost from cross origin attacks in browser scripts.allowed_origins
parameter to AdminWebsocket.attachAppInterface
to specify allowed origins.HolochainError
s throughout with specific error names and messages.Changelog
2024-02-27: v0.17.0-dev.7
AppInfoResponse
can be null
if the requested app is not found.Changelog
2024-02-23: v0.17.0-dev.6
Websocket.connect()
functions' mandatory url
parameter is replaced by an optional options object, which contains optional properties url
and defaultTimeout
. Calling connect
if the url is not defined by parameter, nor by launcher environment will throw an error. Order of parameters in the AppAgentWebsocket.connect
function is changed, so the required parameter goes first.