server: implement the JOIN command