add an example of socket control