change param `keepalive` to `keepAlive`
update example code