js-integration-examples
js-integration-examples copied to clipboard
Examples of common uses of ports and web components
```js class PreventClose extends HTMLElement { // set up events connectedCallback() { // disable on localhost for david's sanity if (window.location.host.includes("localhost")) { return; } this.beforeUnloadListener = (event) => { event.preventDefault();...
According to websocket.org the service is no longer available. Trying the websocket example myself, I apparently can indeed not connect to echo.websocket.org Should probably be mentioned here and also probably...
People who know other languages almost always have the same kind of questions about why Elm chooses to do stuff in specific - usually uncommon - ways. It might be...