Completed socket io stuff