/// <summary> /// Writes binary to the connector. /// </summary> /// <param name="data">Binary to write</param> public virtual void WriteBinary(byte[] data) { OnBinaryWrite?.Invoke(new BinaryMessageEvent(data)); }
/// <summary> /// Writes binary to the connector. /// </summary> /// <param name="data">Binary to write</param> public virtual Task Write(byte[] data) { OnBinaryWrite?.Invoke(new BinaryMessageEvent(data)); return(Task.FromResult(false)); }