decoupling RTC and socket.io