socketTimeout

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
socketTimeout <pSocketID>
Associationsstack, card, field, button, graphic, scrollbar, player, image
Summary

Sent when an open socket, read from socket or write to socket command halts for the time specified by the socketTimeoutInterval property.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
pSocketID

The identifier (set when you opened the socket) of the socket which had an error. : The identifier (set when you opened the socket) of the socket which had an error.

Example
on socketTimeout theID
  answer error "The connnection is not responding." \
     with "Keep Trying" or "Cancel"
  if it is "Cancel" then close socket theID
end socketTimeout
RelatedProperty: socketTimeoutInterval
Message: socketClosed, socketError
Command: read from socket, write to socket, close socket, open socket
Function: openSockets
Glossary: property, socket, message, command
Description

Handle the socketTimeout message to take action when a socket communication has not completed within the time set by the socketTimeoutInterval.

The socketTimeout message is sent to the object whose script created the socket.