NFIBrokerage / slipstream

A slick WebSocket client for Phoenix Channels
https://hex.pm/packages/slipstream
Apache License 2.0
160 stars 18 forks source link

consider a `Slipstream.Socket.update/3` function similar to `assign/3` #21

Closed the-mikedavis closed 3 years ago

the-mikedavis commented 3 years ago

Phoenix.LiveView.update/3 is a pretty helpful tool for updating an assign

it'd be pretty nice to have this functionality for Slipstream.Sockets so we can use Map.merge/2 or &[topic | &1] to update values over time