/// <summary>
        /// Encode an object as JSON and send it to the client,
        /// without encapsulating it in {name:object}.
        /// </summary>
        /// <param name="body">Object to send.</param>
        /// <typeparam name="T">The object type.</typeparam>
        public void SendUnencapsulatedJson <T>(T body)
        {
            var writer = new JsonFx.Json.JsonWriter();

            handler.EnqueueMessage(writer.Write(body));
        }