converted tab indentation to spaces -- basesockets.js