publish(packet) {
		if (
			!packet.target ||
			[
				P.PACKET_EVENT,
				P.PACKET_PING,
				P.PACKET_PONG,
				P.PACKET_REQUEST,
				P.PACKET_RESPONSE,
				P.PACKET_GOSSIP_REQ,
				P.PACKET_GOSSIP_RES,
				P.PACKET_GOSSIP_HELLO
			].indexOf(packet.type) == -1
		)
			return this.Promise.resolve();

		const data = this.serialize(packet);
		return this.send(packet.type, data, { packet });
	}
Publish a packet

@param {Packet} packet

@memberof TcpTransporter