move sockjs.onmessage into a separate function _onServerMessage
move sockjs.onmessage into a separate function _onServerMessage

ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs