From 4b4e2c4296e6e2d291fb100ae8d5b3fa92ef1c64 Mon Sep 17 00:00:00 2001 From: Ulf Bjorkengren Date: Thu, 21 Nov 2024 17:19:03 +0100 Subject: [PATCH] CSV client encoding update Signed-off-by: Ulf Bjorkengren --- client/client-1.0/csv_client/csv_client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/client-1.0/csv_client/csv_client.go b/client/client-1.0/csv_client/csv_client.go index 12bef5d1..c03553e7 100644 --- a/client/client-1.0/csv_client/csv_client.go +++ b/client/client-1.0/csv_client/csv_client.go @@ -87,6 +87,9 @@ func createListFromFile(fname string) int { } func initVissV2WebSocket(compression string) *websocket.Conn { + if compression == "proto" { + compression = "protoenc" + } scheme := "ws" portNum := "8080" if secConfig.TransportSec == "yes" { @@ -100,7 +103,7 @@ func initVissV2WebSocket(compression string) *websocket.Conn { var addr = flag.String("addr", vissv2Url+":"+portNum, "http service address") dataSessionUrl := url.URL{Scheme: scheme, Host: *addr, Path: ""} subProtocol := make([]string, 1) - subProtocol[0] = "VISSv2" + compression + subProtocol[0] = "VISS-" + compression dialer := websocket.Dialer{ HandshakeTimeout: time.Second, ReadBufferSize: 1024,