Skip to content

Commit

Permalink
Added default http response, Closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Trickfilm400 committed Nov 25, 2021
1 parent af90e1c commit 224bbd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export default class SocketIO {
);
//req.method
break;
default:
res.writeHead(204);
res.end(JSON.stringify({ code: 204, message: 'OK', value: null }));
break;
}
}
}

0 comments on commit 224bbd5

Please sign in to comment.