(doc) Added example of bidirectional middleware.