This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Confetti by https://www.npmjs.com/package/canvas-confetti | |
| let ws = new WebSocket("ws://localhost:4000/api/graph/websocket?vsn=2.0.0&client_id=CLIENTID"); | |
| // When connection is open... | |
| ws.addEventListener("open", () => { | |
| // Send hello message | |
| ws.send('["1","1","__absinthe__:control","phx_join",{}]'); | |
| // Ask to be notified when an interactive message is sent | |
| ws.send(`["1", |