Why are you omitting that value when the documentation recommends it be set for increased security?
The optional direction parameter enables the use of 4 distinct
keys (HMAC-send, cipher-encrypt, HMAC-receive, cipher-decrypt),
so that each data flow direction has a different set of HMAC and
cipher keys. This has a number of desirable security properties
including eliminating certain kinds of DoS and message replay
attacks.
When the direction parameter is omitted, 2 keys are used bidi-
rectionally, one for HMAC and the other for encryption/decryp-
tion.
You're just hobbling the feature by omitting the direction. Seems it would be much simpler to add the direction on the server side like it wants.