cheshire-cat-ai / widget-vue

Vue chat widget for the Cheshire Cat, ready to be used on any website
GNU General Public License v3.0
20 stars 8 forks source link

The user id always remains 'user' #3

Open SoftPlaceWeb-Dev opened 7 months ago

SoftPlaceWeb-Dev commented 7 months ago

with this setting:

catChat.settings = {
        user: 'user_123',
    }

the websocket connection it is always open with the user id 'user'.

instead passing the user directly into the path works:

catChat.settings = {
        user: 'user_123',
        ws: {
            onFailed: (error) => {
                console.log(error.description)
            },
            'path': 'ws/user_123'
        },
    }
MattNot commented 1 month ago

Can confirm, i'm using the cdn version so it would be helpful if a fix can be deployed there too.