var audioContext = new AudioContext();
ws.onmessage = onMessage;
async function onMessage(data) {
var arrayBuffer = await new Response(event.data).arrayBuffer();
let source = audioContext.createBufferSource();
source.buffer = await audioContext.decodeAudioData(buffer);
source.connect(audioContext.destination);
source.start();
}