Fix websocket unmasking issues. Autotest works with C httpd, now.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4699 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-12-29 17:45:07 +00:00
parent 8ab8335baa
commit 7964524e0a
7 changed files with 45 additions and 32 deletions

View File

@ -1005,7 +1005,7 @@ loadSettings().then(function() {
}
});
httpd_impl.registerSocketHandler("/app/socket", app.socket);
httpd_impl.start();
httpd_impl.start(tildefriends.http_port);
}).catch(function(error) {
print('Failed to load settings.');
printError({print: print}, error);

View File

@ -525,7 +525,6 @@ let kBacklog = 8;
let kHost = platform() == 'haiku' ? 'localhost' : '::';
function start() {
print('ACTUAL START');
let socket = new Socket();
socket.bind(kHost, tildefriends.http_port).then(function(port) {
print("bound to", port);