Add toggle realtime message

Move socket to message controller