com.isomorphic.messaging

## Class MessagingServlet

- com.isomorphic.messaging.MessagingServlet

-     public class MessagingServlet

  The MessagingServlet is part of the optional Real-Time Messaging module. This servlet handles asynchronous delivery of real-time messages to the client. For real-time messaging to work, this servlet must be registered in you web.xml and configured to intercept the following url-pattern: `/isomorphic/messaging/*`

  Configuration of this servlet is controlled entirely through server.properties. Refer to the Real-Time Messaging QuickRef for configuration options an details.

  NOTE: This servlet is configured to automatically set character encoding on requests and responses to UTF-8. If you wish to force a different encoding, you can do so by specifying an `init-param` in your web.xml file, like so:

       <servlet>
         <servlet-name>MessagingServlet</servlet-name>
         <servlet-class>com.isomorphic.messaging.MessagingServlet</servlet-class>
         <init-param>
           <param-name>encoding</param-name>
           <param-value>some-other-encoding</param-value>
         </init-param>
       </servlet>

  If you wish to switch off explicit encoding altogether, use the `init-param` to set a value of "none".

  Please see the client-side documentation on Internationalization for a discussion of why this procedure is necessary.

  See Also:
    Serialized Form