First version of chat working using websockets