The method signature for the C++ APIs and the Javascript client are reversed. In C++ the P2PSignalingChannelInterface::SendMessage() has the arguments as the message first, then the targetId.
In the owt-client-javascript, the SignalingChannel()->send() method has the arguments as targetId first, then the message.
This is both confusing and complicates implementing your own signaling protocol on top of the P2PClient classes.
The method signature for the C++ APIs and the Javascript client are reversed. In C++ the P2PSignalingChannelInterface::SendMessage() has the arguments as the message first, then the targetId.
In the owt-client-javascript, the SignalingChannel()->send() method has the arguments as targetId first, then the message.
This is both confusing and complicates implementing your own signaling protocol on top of the P2PClient classes.