setup a demo for socket

this needs to be changed and separated into different files, but at
least it's a start