mikmc commited on
Commit
07f2ceb
·
verified ·
1 Parent(s): 7f34379

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -8
index.js CHANGED
@@ -168,12 +168,6 @@ addon.defineStreamHandler(async (args) => {
168
  }
169
  });
170
 
171
- // Debugging: Check the server module
172
- const { serve } = server; // Destructure 'serve' function from the server module
173
-
174
- // Debugging: Check the server module
175
- console.log('Server module:', server); // Log the server object
176
- console.log('Destructured serve function:', serve); // Log the serve function
177
-
178
  // Start the server with the corrected method
179
- serve({ port: PORT }); // Start the server on the given port
 
 
168
  }
169
  });
170
 
 
 
 
 
 
 
 
171
  // Start the server with the corrected method
172
+ const { serve } = server(addon); // Get 'serve' function from the server module
173
+ serve({ port: PORT }); // Ensure the server is started with the correct port