remove needless 'var socket;' declaration

seems this variable is not actually used.