Code example for Socket

Methods: closeconnect