Closed zontarian closed 6 years ago
Well..it seems my parameters were wrong. By debugging the chat in the "Behaviour" tab, I discovered
uuid
for the bot. It's something like ae9c0c65-xxx-xxxx-xxxx-xxxxxxxxxxx
(obfuscated..) so it seems it's not 10
channel
tab. With these two parameter my sample connection worked and I was able to join the channel.
Now the question is, how to infer these values from the info on the web site? :) Maybe there is a service to call beforehand..
Closed in favor of https://github.com/instedd/aida/issues/276
Hi, I'm trying to connect to a Bot I've created, using a JS client (so, websockets). This is my first go at it. I'm using as a starting point https://hexdocs.pm/phoenix/js/#phoenix https://github.com/instedd/aida-ui/blob/master/app/javascript/components/ChatClient.jsx
So far I've managed to open the Phoenix socket and connect to it, but when I try to join the channel Iike this
I get
{reason: "unauthorized"}
botId
is a number, the one I see in this URLhttps://aida.xxxxxxxxx.org/b/10/channel
(10). WhileaccessToken
is the token I've written in theChannel
tab of my Bot configuration, under the headingSo, what is the correct authorization? Thanks Walter