The Vienna convention (1961) on diplomatic relations does not specify how countries will be represented. They are typically represented in another country by an embassy or other types of diplomatic missions. However, there are many other options available such as rowing (nonresident Ambassadors). Online diplomatic representation can be considered legal. It is yet to be seen if this practice will increase in popularity over the next few years.