Expand the non-functional sample to have an input to make it more useful
Add try/catch to websocket to fix #402
Also allow buffer out as binary if required. (ie don't try and stringify a buffer)