You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All ConnectedWallet methods are abstracted over API Methods. DWN Service Worker is responsible for sending Server Side Events which are interpreted by HTMX.
// NewSSE creates a new sse manager with the specified worker pool size.func (h*HTMX) NewSSE(workerPoolSizeint) error {
ifsseManager!=nil {
returnerrors.New("sse manager already exists")
}
sseManager=sse.NewManager(workerPoolSize)
returnnil
}
// SSEHandler handles the server-sent events. this is a shortcut and is not the preferred way to handle sse.func (h*HTMX) SSEHandler(w http.ResponseWriter, r*http.Request, cl sse.Listener) {
ifsseManager==nil {
sseManager=sse.NewManager(DefaultSSEWorkerPoolSize)
}
sseManager.Handle(w, r, cl)
}
// SSESend sends a message to all connected clients.func (h*HTMX) SSESend(message sse.Envelope) {
ifsseManager==nil {
sseManager=sse.NewManager(DefaultSSEWorkerPoolSize)
}
sseManager.Send(message)
}
Description
All
ConnectedWallet
methods are abstracted over API Methods. DWN Service Worker is responsible for sending Server Side Events which are interpreted by HTMX.New Methods
getAuthInfo()
estimateFee()
broadcastTx()
pollTx()
broadcastTxSync()
signArbitrary()
signAndBroadcastTx()
Associated Files
These files will be modified by this task.
References
Related Issues
accountstd
interface for Sonr Accounts #1114MsgExecute
with Macaroon Token for Verification #1115Tech Documents
The text was updated successfully, but these errors were encountered: