   def handle_info(msg, state)
 
   def handle_info({:tcp, socket, msg}, %{session_id: sid, socket: socket} = s) do
-    # Reactivate the socket.
     :inet.setopts(socket, active: :once)
     data = s.tail <> msg
 

  def handle_call({:operation, op_name, args}, from, %{session_id: sid} = s) do
    req = Protocol.encode_op(op_name, [sid|args])

    s = update_in(s.queue, &:queue.in({from, op_name}, &1))

    :gen_tcp.send(s.socket, req)
    {:noreply, s}


    %{global_properties: global_properties}
  end

  defp enqueue(s, what) do
    update_in s.queue, &:queue.in(what, &1)
  end
end
