fixing rendering.
Websockets wired up.

The logic should be moved to an adapter however.