server.bind() is async, so call addMembership() in the callback.