Thanks to @stewpend0us, we can customize the BUFFER_SIZE inside of the sockets for example:
TCPSocket<0xFFFF> socket; // 0xFFFF is the Buffer size you want for handling incoming messages
TCPServer<0xFFFF> server;
UDPSocket<0xFFFF> udp_socket;
UDPServer<0xFFFF> udp_server;