public Task <CancellationToken> SendTopicDataImmediately(TopicData topicData) { byte[] buffer = topicData.ToByteArray(); socket.SendFrame(buffer); return(Task.FromResult(new CancellationToken(false))); }
public void SendTopicData(TopicData td) { byte[] buffer = td.ToByteArray(); socket.SendFrame(buffer); }