receive(type, message, socket) {
		switch (type) {
			case P.PACKET_GOSSIP_HELLO:
				return this.processGossipHello(message, socket);
			case P.PACKET_GOSSIP_REQ:
				return this.processGossipRequest(message);
			case P.PACKET_GOSSIP_RES:
				return this.processGossipResponse(message);
			default:
				return this.incomingMessage(type, message);
		}
	}
Received data. It's a wrapper for middlewares.

@param {String} cmd
@param {Buffer} data