       // convert the input from markdown to HTML
       let output = input.markdownToHTML ?? ""
 
+      // sent it back to the request
       socket.sendStringMessage(string: output, final: true) {
         self.handleSession(request: request, socket: socket)
       }//end send

  }//end return
}//end handler

// default home page 
let homePage = "<html><head><title>Perfect Online Markdown Editor</title>\n" +
  "<meta http-equiv='Content-Type' content='text/html;charset=utf-8'>\n" +
  "<script language=javascript type='text/javascript'>\nvar input, output;\n" +
  "function init()\n { input=document.getElementById('textInput'); \noutput=document.getElementById('results');\n" +
  "sock=new WebSocket('ws://' + window.location.host + '/editor', 'editor');\n" +
  "sock.onmessage=function(evt) { output.innerHTML = evt.data; } }\n" +
  "function send() { sock.send(input.value); } \n" +
  "window.addEventListener('load', init, false);\n" +

import PerfectMarkdown

/// server port to start with
let PORT = 7777

/// web socket protocol
let PROTOCOL = "editor"

/// web socket api entry
let API = "editor"

/// WebSocket Event Handler
public class EditorHandler: WebSocketSessionHandler {

  public let socketProtocol : String? = PROTOCOL

  // This function is called by the WebSocketHandler once the connection has been established.
  public func handleSession(request: HTTPRequest, socket: WebSocket) {
