knockout functions to support sailsjs api and realtime socket.io requests