CDIGlobalTrack / rxdjango

A layer over Django Channels to push model updates through websockets
MIT License
30 stars 1 forks source link

Renamed StateChannel to ContextChannel and "anchor" to "state" #35

Closed lfagundes closed 3 months ago

lfagundes commented 3 months ago

The new interface is more intuitive, for example:

class ChatRoomChannel(ContextChannel):
    class Meta:
        state = chat.serializers.ChatRoomNestedSerializer()

Now we can conceptually support actions, as the channel is more than just "State". The actions PR has been open for months waiting for this resolution.

The "anchor" concept is still usually internally, it was just renamed on the framework API.