add lockStudent API
update iOS Socket