Closed ddaydd closed 5 years ago
Hi @ddaydd,
You'll need to pass in a different Client
for each HttpClient
you create in the sketch, please try this:
EthernetClient ethernet1;
EthernetClient ethernet2;
HttpClient httpClient = HttpClient(ethernet1, HMD_url, PORT);
WebSocketClient socketClient = WebSocketClient(ethernet2, HMD_url, PORT);
It's too simple and i had missed that. it works. Thank you very much!
Hi,
Can i have two simultaneous connection and how? When i do a http request, the server close the socket connection. With httpClient.connectionKeepAlive(); i keep the connection but the memory between http and socket seems shared.
could you help me?
here is my reduced code...