websocket connection with path

I have Arduino MKR Wifi 1010 and want to connect to a local web socket server with URL

ws://192.168.1.114:1880/uid/coms

The server is fully operational and can be connected to by other Linux devices with this URL.

This URL has both port and path components

I cannot see the syntax to add all the components together

char serverAddress = "172.16.10.114";

char path="/uid/coms";

int port = 1880;

WiFiClient wifi;

client statement does not allow for path component:

WebSocketClient client = WebSocketClient(wifi,serverAddress,port);

followed by client.begin(); (within VOID loop)

The above works fine to an external web socket test URL where there is only domain and port

What am I missing in my syntax?

if you use the ArduinoHttpClient library, begin() has a parameter 'path'

int begin(const char* aPath = "/");

Thanks for the response, I think I am missing something in your explanation in the way this is used?
Sorry if this us a dumb question, but I am new to websocket comms.

Here are the key lines from my code

#include <SPI.h>
#include <WiFiNINA.h>
#include <ArduinoHttpClient.h> << I am using Ardunio HTTP library

char serverAddress = “172.16.10.114”;

int port = 1880;

int begin(const char* aPath = “mypath/here”); << Is this correct?

WiFiClient wifi;

WebSocketClient client = WebSocketClient(wifi,serverAddress,port);

client.begin(); <<is argument used here?

shootsystems:
Thanks for the response, I think I am missing something in your explanation in the way this is used?
Sorry if this us a dumb question, but I am new to websocket comms.

Here are the key lines from my code

#include <SPI.h>
#include <WiFiNINA.h>
#include <ArduinoHttpClient.h> << I am using Ardunio HTTP library

char serverAddress = “172.16.10.114”;

int port = 1880;

int begin(const char* aPath = “mypath/here”); << Is this correct?

WiFiClient wifi;

WebSocketClient client = WebSocketClient(wifi,serverAddress,port);

client.begin(); <<is argument used here?

you are new to what?
I pasted the function declaration, because the library is not documented.
of course you use client.begin(“mypath/here”);