WindowSocket: WIP handling external API;
EXAMPLE: Added onmessage handler