alanorozco / amp-script-chat

Demo chat app running on amp-script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

amp-script chat client

amp-script ES5 code lives on static/client.js, talking to a simple broadcast/session-keeping server on ws.js.

Running

npm run serve starts:

  • an HTTP server for the static client on port 8000
  • a WebSocket server for chat communication on port 8080.

⚠️ Compatibility

Current binaries (as of October 4th, 2019) the AMP runtime (1909181902540 prod & 1909241711100 canary/RC) ship a version of worker-dom inside amp-script for which HTMLInputElement.value getters are broken.

In order to run this demo, custom AMP binaries need to be built and mapped until amp-script ships with worker-dom version ≥ 0.21.0.

About

Demo chat app running on amp-script.


Languages

Language:JavaScript 74.0%Language:HTML 26.0%