File: 1.0.2.rst

package info (click to toggle)
python-django-channels 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 872 kB
  • sloc: python: 2,394; makefile: 154; sh: 8
file content (27 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 as ``channels.exceptions.WebsocketCloseException(code=None)``. There is
  also a generic ``ChannelSocketException`` you can base any exceptions on that,
  if it is caught, gets handed the current ``message`` in a ``run`` method, so you
  can do custom behaviours.

* Calling ``Channel.send`` or ``Group.send`` from 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.