Hi,
after encountering this error i found this solution:
https://stackoverflow.com/questions/70411564/unity-webgl-throws-error-referenceerror-runtime-is-not-defined
in websocket-native.jslib:
change Runtime.dynCall('vi', action, [id]);
for
Module['dynCall_vi'](action, id);