This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Record - socket : ClientConfig

Configurations for the socket client.

Closed record


  • host string
  • The target service URL

  • port int
  • The port number of the remote service

  • readTimeoutInMillis int (default 300000)
  • The socket reading timeout value to be used in milliseconds. If this is not set, the default value of 300000 milliseconds (5 minutes) will be used.

  • callbackService service
  • The callback service for the client. Resources in this service gets called on the receipt of the messages from the server.