www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Connecting two web sockets at the same time with vibe.d

I am blocked in my project because of an issue while using 

I can simplify my problem like :

	auto ws_url = 
URL("wss://stream.binance.com:9443/ws/ethbtc aggTrade");
	auto ws = connectWebSocket(ws_url);
	if ( !ws.connected )
	ws_url = URL("wss://stream.binance.com:9443/ws/iotabtc depth");
	auto ws2 = connectWebSocket(ws_url);
	if ( !ws2.connected )

If I don't close the first socket before opening the second one I 
am getting two different exceptions which can be seen in my 
question which I already ask in vibe.d's forum :


Since I am blocked I am open to any suggestions. Or if some one 
knows an alternative socket implementation I may have to switch 
to another library.

So do you guys have any suggestions or an alternative library for 
socket handling?

Jun 02 2018