SetSocketConfig
Description: This method sets the socket configuration for the builder. It allows you to define the IP address, port number, and server capacity for the socket server/client connection.
Parameters:
config
(SocketConfig
): A configuration object that holds the socket settings, including the IP address, port number, and the maximum number of clients the server can handle.
Returns:
SocketBuilder
: Returns theSocketBuilder
instance itself, enabling method chaining for further configuration.
Last updated