I'm tring to use emscripten_websocket_deinitialize to free all handles. But it seems that this function use an empty arrary(WS.sockets). https://github.com/emscripten-core/emscripten/blob/36a3fa596f35be211c964b2fda4c6908acda0a76/src/library_websocket.js#L433