wasm-bindgen/examples/websockets/index.js

6 lines
135 B
JavaScript
Raw Normal View History

2019-05-20 02:01:25 +03:00
import init from './pkg/websockets.js';
window.addEventListener('load', async () => {
await init('./pkg/websockets_bg.wasm');
});