Implements Socket Metrics

Closes #346