Base layer for building a client that connects to the stream API