Optional: Create a function that contains the rest `OnMessageReceived` starting from here. A possible good name would be `DispatchMessageToServer` or `RouteMessageToServer`.