Closed dclause closed 4 years ago
Merge request to add ability to use query params when connecting to socket.io
I personally use it, but it also has been requested by issue #26
To use it, simply add the query in a char array as per the hostname but url encode this string.
Example:
char query[] = "id=foo&name=bar";
Then change your usage of connect() from client.connect(hostname, port) to client.connect(hostname, port, query)
client.connect(hostname, port)
client.connect(hostname, port, query)
Thanks a lot, this is a great addon :)
Merge request to add ability to use query params when connecting to socket.io
I personally use it, but it also has been requested by issue #26
To use it, simply add the query in a char array as per the hostname but url encode this string.
Example:
Then change your usage of connect() from
client.connect(hostname, port)
toclient.connect(hostname, port, query)