[Sockjs] Handle 1006 error as 'end' event rather than 'error'