intercept socket communications for analysis