/// <summary> /// Publish an event to the given topic. /// </summary> /// <param name="event">event to publish</param> public void Publish(PubSubEvent @event) { string rawTopic = @event.GetTopic(); string rawMessage = this.Serializer.Serialize(@event); this.Socket.SendMoreFrame(rawTopic); this.Socket.SendFrame(rawMessage); }