Comments (6)
Is there any documentation how
window.postMessage( { message: dateValue, type: "chasitor.sendMessage" }, window.parent.location.href );
works? I can't find anything at the moment
from chat-lightning-web-component-pack.
Me neither, looks like a spoof of what the actual chat window receives as an event when the customer sends a chat message?
from chat-lightning-web-component-pack.
@erocheleau Have you looked at the user guide yet? https://quip.com/WM7AA3tXRsaf
from chat-lightning-web-component-pack.
I have found it afterwards yes, my bad.
But is there no other way to support this? As someone who wants to distribute a managed package using this feature, it is not really realistic to ask every client to copy a JS snippet in the header of their community.
You can close this as it isn't really related to this package anymore, but perhaps you could add that quip link to the readme?
from chat-lightning-web-component-pack.
Is there any other way to post the message as chasitor from the LWC to the bot?
I don't want to do:
window.postMessage({ message: dateValue, type: "chasitor.sendMessage" }, window.parent.location.href );
And use the script in the community page header.
from chat-lightning-web-component-pack.
This issue was resolved after reading the documentation :)
from chat-lightning-web-component-pack.
Related Issues (10)
- Trying to get Calendar and Recordtile working in custom site(not community) HOT 1
- Post Message is not working in External Site
- Redirect to Article Only Works Once Per Session
- Flow response is currently not working HOT 2
- Could not Deploy Static Resources and Bot
- Screen Flow result is showing blank value.
- Screen Flow result is showing blank value HOT 1
- Screen flow without community HOT 5
- Lwcchatpack_address not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-lightning-web-component-pack.