dialogflow / dialogflow-javascript-client

JavaScript Web SDK for Dialogflow
Apache License 2.0
411 stars 173 forks source link

Websocket closing connection automatically (if lang=de) #53

Open sgasser opened 7 years ago

sgasser commented 7 years ago

Hi,

I use the streamClient but the websocket-connection closing connection automatically. selection_039

I removed lang from client instantiation (so lang is default / en) and now it's working:

const client = new ApiAi.ApiAiClient({
      accessToken: '###',
      streamClientClass: ApiAi.ApiAiStreamClient,
      // lang: 'de'
});

I tested it also with the simple-demo - same results.

Stefan

lbossut commented 6 years ago
const client = new ApiAi.ApiAiClient({
      accessToken: '###',
      streamClientClass: ApiAi.ApiAiStreamClient,
      lang: ApiAi.ApiAiConstants.AVAILABLE_LANGUAGES.DE // you can change for any language in AVAILABLE_LANGUAGES
});