Moved type for received messages onto server-side