I still had an older version of connect installed so createServer worked but this is deprecated meanwhile