A good way to proceed would be to have a look at the Examples that ship with 8.2.
Click on "Help". Then click on "Find Examples".
Once the example finder is open, have a search for data socket. You'll find some code there that you can test and observe.
Regards,
Pat Allen