added onconnected
Merge branch 'master' of https://github.com/antingshen/TypingGame