client/server: pass type of client to the backend