add socket type and print to web console