updated and forced to work webSocket connector generator