auto-replace wsUri with config from server
set default onmessage to append to editor