Got a chat client sort of working