websocket communication (part 1)
fixed base class
realtime class few changes