UFNotification indicates that the command is actually a notification. This means when it is marshalled, the ID must be nil.
// The commands in this file are only usable by websockets and are // notifications. flags := UFWebsocketOnly | UFNotification MustRegisterCmd(BlockConnectedNtfnMethod, (*BlockConnectedNtfn)(nil), flags)
UFWalletOnly: "UFWalletOnly", UFWebsocketOnly: "UFWebsocketOnly", UFNotification: "UFNotification", }
// The commands in this file are only usable with a wallet server via // websockets and are notifications. flags := UFWalletOnly | UFWebsocketOnly | UFNotification MustRegisterCmd(AccountBalanceNtfnMethod, (*AccountBalanceNtfn)(nil), flags)