refactor to not send as much data over websockets
begin rewrite of chat example