Fix poll format according with new server protocol
Add real server api wrapper