Better ws api based on einaros/ws