writing realtime-client.js