_Added in 1.9.0_ *on :SOCKCLOSE:name:* Triggers when a connection is closed by the remote connection. (not by [[/sockclose]]) *Parameters* - The [[User Access Level]] for the event to trigger. - The [[$sockname]] to listen to. - The commands to be performed when the event listener's criteria is met. _See also [[on SOCKLISTEN]], [[on SOCKCLOSE]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[/sockaccept]], [[$sock]], [[$sockbr]], [[$sockerr]], [[$sockname]]._ *Example*
; Open a connection to AdiIRC.com, port 80.
/sockopen adiirc adiirc.com 80

; Make a request for the index page.
on *:SOCKOPEN:adiirc:{
  sockwrite -n adiirc GET / HTTP/1.0
  sockwrite -n adiirc Host: www.adiirc.com
  sockwrite -n adiirc 
}

on *:SOCKCLOSE:adiirc:echo -ag adiirc.com closed the connection