warmcat / libwebsockets

canonical libwebsockets.org networking library

Home Page:https://libwebsockets.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to pass the query component to connect web server?

nikunjp26 opened this issue · comments

Dear Team,

we are using this library for our websocket connection. now we are trying to connect the wss link as per below.

MicrosoftTeams-image (3)
MicrosoftTeams-image (1)

Below is our server url which we need to connect
wss://url/ws?query=value

so can you please guide us how we need to connect this? or will be appreciate if you can share the sudo example code.

best regards,
Nikunj patel

See eg, minimal-examples-lowlevel/ws-client/minimal-ws-client/minimal-ws-client.c

Adapt i.path (line 65) to include the query.