Update server.js
Browse files
server.js
CHANGED
@@ -9,7 +9,7 @@ server.on('connection', (ws) => {
|
|
9 |
ws.on('message', (message, child) => {
|
10 |
console.log(`Received: ${message}`);
|
11 |
// Echo the message back to the client
|
12 |
-
ws.send(
|
13 |
});
|
14 |
|
15 |
ws.on('close', () => {
|
|
|
9 |
ws.on('message', (message, child) => {
|
10 |
console.log(`Received: ${message}`);
|
11 |
// Echo the message back to the client
|
12 |
+
ws.send("Hi! This is hosted on HuggingFace Spaces.")
|
13 |
});
|
14 |
|
15 |
ws.on('close', () => {
|