Broadcast to socket without channel

MyApp.Endpoint.broadcast("users_socket:" <> user_id, "mymessage", %{})

I think it would only work for "disconnect". I remember struggling with it here How to put something in a socket's assigns from another process

1 Like