Libwebsockets libwebsocket_client_connect function parameters -


this signature of libwebsocket_client_connect()

struct libwebsocket * libwebsocket_client_connect(struct libwebsocket_context * context, const char *address, int port, int ssl_connection, const char *path, const char * host, const char * origin, const char * protocol, int ietf_version_or_minus_one)

here explain path parameter means? in doc written path - websocket path on server. couldnt proper meaning.

path refers "path" websockets endpoint/uri located on server.

when run sample code websocket server available online, server runs @ localhost:9000 .here there no path , can give "/" path in libwebsocket_client_connect().

but in cases server may running @ specified uri on server www.myserver:9000/inside/inside/websockets/endpoint

in above case path "/inside/inside/websockets/endpoint".


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -