scaffold socket send and tests