• Niklas Adolfsson's avatar
    refactor `SubscriptionClosed` (#612) · c480d90a
    Niklas Adolfsson authored
    
    
    * refactor `SubscriptionClosed`
    
    I noticed that we "trying" to sending "close messages" on subscriptions
    that already has been terminated by the client which is unnecessary.
    
    Moreover, this introduces `fn is_closed` to check whether a given
    channel is closed without having to send an actual message on the channel.
    
    * cargo fmt
    
    * Update types/src/error.rs
    
    Co-authored-by: default avatarDavid <[email protected]>
    
    * fix nits
    
    * more grumbles
    
    * make rust stable happy
    
    * SubscriptionClosed: add deny unknown fields
    
    Co-authored-by: default avatarDavid <[email protected]>
    c480d90a