Browse Source

Let Lua-Websockets have their own file extension

bel 11 years ago
parent
commit
3d85c92745
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/civetweb.c

+ 3 - 1
src/civetweb.c

@@ -4784,7 +4784,9 @@ static void handle_websocket_request(struct mg_connection *conn, const char *pat
 {
     const char *version = mg_get_header(conn, "Sec-WebSocket-Version");
 #ifdef USE_LUA
-    int lua_websock, shared_lua_websock = 0;
+    int lua_websock, shared_lua_websock = 0; 
+    /* TODO: A websocket script may be shared between several clients, allowing them to communicate
+             directly instead of writing to a data base and polling the data base. */
 #endif
 
     if (version == NULL || strcmp(version, "13") != 0) {