Added support for livesockets
Closer to working state. Not yet running.