Make timeout configurable

`StreamClient` has timeout setting hardcoded while `SocketClient` does not use it.