Called by a client to synchronously request data from a server. Calling this method causes the server connection's on-request method to be called (on an event boundary). The method blocks until a reply is received from the server; the server's reply is returned from this method.
These arguments are passed on to the server connection's on-request method. The size parameter controls the number of characters of data that are sent to the client connection. When size is -1 and format is wx:const-cf-text, the size of data is computed automatically as the length of data.