aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorame <[email protected]>2025-01-22 02:45:23 -0600
committerame <[email protected]>2025-01-22 02:45:23 -0600
commit08cddd087a95bc54c0804d3f81a792cbfc40640a (patch)
tree0de207c53c902fc86fedb9a6196e4abebbd5277d /src/net.h
parent7a11601d5f97c5bcf93eb7d9b534ef39cedb58a8 (diff)
work on websockets
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index e7d7d62..05b6e34 100644
--- a/src/net.h
+++ b/src/net.h
@@ -18,6 +18,7 @@ int l_listen(lua_State*);
int l_request(lua_State*);
int l_srequest(lua_State*);
+int l_wss(lua_State*);
int64_t recv_full_buffer(int client_fd, char** _buffer, int* header_eof, int* state);
@@ -41,8 +42,9 @@ static char* http_codes[600] = {0};
static const luaL_Reg net_function_list [] = {
{"listen",l_listen},
- {"request",l_request},
+ //{"request",l_request},
{"srequest",l_srequest},
+ {"wss",l_wss},
{NULL,NULL}
};