- ru
- Language: en
- Documentation version: 3
1.0.2 Release Notes¶
Channels 1.0.2 is a minor bugfix release, released on 2017/01/12.
Changes¶
Websockets can now be closed from anywhere using the new
WebsocketCloseException, available aschannels.exceptions.WebsocketCloseException(code=None). There is also a genericChannelSocketExceptionyou can base any exceptions on that, if it is caught, gets handed the currentmessagein arunmethod, so you can do custom behaviours.Calling
Channel.sendorGroup.sendfrom outside a consumer context (i.e. in tests or management commands) will once again send the message immediately, rather than putting it into the consumer message buffer to be flushed when the consumer ends (which never happens)The base implementation of databinding now correctly only calls
group_names(instance), as documented.
Backwards Incompatible Changes¶
None.