How to write LAN network device using socket tcp/connect/send/receive

Are there any examples out there using socket.tcp/connect/send/receive? socket.http does not work in my case.

The socket reference docs state “it is preferable to use the cosock.socket APIs provided instead of anything provided by this module” but offer no sample code.

Is the sample code in socket reference docs unacceptable for the SmartThinhs Edge environment?

Linking this conversation as it moved to this other post: