Fix websocket issue (event 'socket' fired before 'upgrade') + socketPath