onmessage commands fully working