This is turned out to be a bug at the sockjs-tornado side. Please refer to https://github.com/sockjs/sockjs-client/issues/285 for the details.