瀏覽代碼

Let Lua-Websockets have their own file extension

bel 11 年之前
父節點
當前提交
3d85c92745
共有 1 個文件被更改,包括 3 次插入1 次删除
  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) {