Wireless sensor network (WSN) has been used in a wide range of applications in recent years. However, its use in space applications has yet to receive the same level of attention. In this paper, a survey on WSN for two major spacecraft applications namely the intra-satellite communication and inter-satellite communication is presented. The challenges and trade-offs will be discussed and a case study of using WSN for inter-satellite communication will be presented.