Converted the socket functionality to be compatible with v0.10.0 of Sail...

...sJS.