AM
Size: a a a
AM
B
AI
AK
АН
AK
ML
AI
ML
m
AI
m
m
m
AI
def handle_info(:status, socket) do
fields = [:id, :status, :type]
assigns =
%{assigns: Repo.all(from p in App.Assignment, select: map(p, ^fields))
}
push(socket, "status", assigns)
schedule_status_send()
{:noreply, socket}
end
m
m
@callback handle_in(event :: String.t, payload :: map, socket :: Socket.t) ::
{:noreply, Socket.t} |
{:noreply, Socket.t, timeout | :hibernate} |
{:reply, reply, Socket.t} |
{:stop, reason :: term, Socket.t} |
{:stop, reason :: term, reply, Socket.t}
m
к
AI
@callback handle_in(event :: String.t, payload :: map, socket :: Socket.t) ::
{:noreply, Socket.t} |
{:noreply, Socket.t, timeout | :hibernate} |
{:reply, reply, Socket.t} |
{:stop, reason :: term, Socket.t} |
{:stop, reason :: term, reply, Socket.t}