(ws commands) in websocket proxy, disable automatic reconnections + in Dockerfile, use alpine 3.11

This commit is contained in:
Benjamin Sergeant
2019-12-20 09:51:21 -08:00
parent 52221906f6
commit 81be970679
4 changed files with 9 additions and 4 deletions

View File

@ -61,7 +61,7 @@ namespace ix
// Server connection
state->webSocket().setOnMessageCallback([webSocket, state, verbose](
const WebSocketMessagePtr& msg) {
const WebSocketMessagePtr& msg) {
if (msg->type == ix::WebSocketMessageType::Open)
{
std::cerr << "New connection" << std::endl;
@ -120,6 +120,7 @@ namespace ix
std::string url(remoteUrl);
url += msg->openInfo.uri;
state->webSocket().setUrl(url);
state->webSocket().disableAutomaticReconnection();
state->webSocket().start();
// we should sleep here for a bit until we've established the