Hi, the bellow code doesn't send data to server, the server doesn't receive it. please give me a solution.

Private Sub Form_Unload(Cancel As Integer)
sockMain.SendData "Closing"
End Sub