Versions in this module Expand all Collapse all v0 v0.5.0 Jul 17, 2025 Changes in this version + type JsonSession interface + Info func() view.SessionInfo + Receive func(state interface{}) error + ReceiveRaw func() ([]byte, error) + ReceiveRawWithTimeout func(d time.Duration) ([]byte, error) + ReceiveWithTimeout func(state interface{}, d time.Duration) error + Send func(payload any) error + SendError func(error string) error + SendErrorWithContext func(ctx context.Context, error string) error + SendRaw func(ctx context.Context, raw []byte) error + SendWithContext func(ctx context.Context, payload any) error + Session func() Session + func JSON(context view.Context) JsonSession + func NewFromInitiator(context view.Context, party view.Identity) (JsonSession, error) + func NewFromSession(context view.Context, s Session) JsonSession + func NewJSON(context view.Context, caller view.View, party view.Identity) (JsonSession, error) + type Session = view.Session