wasm-bindgen/examples/websockets/index.js
2019-06-01 15:40:32 +03:00

6 lines
135 B
JavaScript

import init from './pkg/websockets.js';
window.addEventListener('load', async () => {
await init('./pkg/websockets_bg.wasm');
});