|
|
|
@ -234,11 +234,9 @@ func PostReqForEachVoiceFile(reqDataForVoiceFile FailedDataListReqBody) (respons
|
|
|
|
|
|
|
|
|
|
func SendSTTResToNockChiServer(parsedRes FailedDataListReqBody, sttRes string, dir string) *icserror.IcsError {
|
|
|
|
|
|
|
|
|
|
url := conf.Urls.NockChiServer.SrcIP
|
|
|
|
|
headers := http.Header{
|
|
|
|
|
"Origin": {"https://192.168.0.69"},
|
|
|
|
|
}
|
|
|
|
|
conn, _, err := websocket.DefaultDialer.Dial(url, headers)
|
|
|
|
|
url := conf.Urls.NockChiServerUrl
|
|
|
|
|
|
|
|
|
|
conn, _, err := websocket.DefaultDialer.Dial(url, nil)
|
|
|
|
|
if err != nil {
|
|
|
|
|
l.Println("[ERR] client.go>SendSTTResToNockChiServer()> connecting websocket failed. err: %v", err)
|
|
|
|
|
return icserror.ICSERRWEBSOCKETConnectFailError
|
|
|
|
|