removed redundant declarations

I removed redundant declarations in Socket function.

I run tests. All is ok but the commented line is wrong. I'm not good with coffee script. This is why I didn't corrected test file.