A chat server API and socket backend