Reincluding declaration of socket in index, per Alex's request.

It is what it is.