# workspace_channel.ex
@impl true
def handle_info(%{topic: "notes", event: "create_note"} = message, socket) do
push(socket, "note_created", message.payload.note)
{:noreply, socket}
end
# workspace_channel.ex
@impl true
def handle_info(%{topic: "notes", event: "create_note"} = message, socket) do
push(socket, "note_created", message.payload.note)
{:noreply, socket}
end