Implemented submit and submitResult socket endpoints