public bool GetIndex(WebServer server, HttpListenerContext context) {
try {
var buffer = Encoding.UTF8.GetBytes(WebsocketsUpdate("/api/current"));
context.Response.ContentType = "text/html";
context.Response.OutputStream.Write(buffer, 0, buffer.Length);
return true;
} catch (Exception ex) {
return HandleError(context, ex);
}
}