working chats - ugly but working
puszek sockets refactoring