add basic websocket support

This commit is contained in:
ading2210 2024-01-26 18:27:17 -05:00
parent 8ad11cd515
commit 17d8c9fa8c
10 changed files with 292 additions and 29 deletions

5
client/util.c Normal file
View file

@ -0,0 +1,5 @@
#include <string.h>
int starts_with(const char *a, const char *b) {
return strncmp(a, b, strlen(b)) == 0;
}