The examples use `close()` and `halfClose()` instead of `socketClose()` and `socketHalfClose()`.