preliminary pgrest socket.io client library implementation