When the OS's socket returns an error, the requestSocket (which is initialised a few lines above but never entered the socket event) variable is not defined and throws an error when try to access it.
Tested it with nock and when I disabled all network requests, the above error came up.
General information
Issue description
When the OS's socket returns an error, the
requestSocket
(which is initialised a few lines above but never entered thesocket
event) variable is not defined and throws an error when try to access it.Tested it with nock and when I disabled all network requests, the above error came up.