mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
chore(server): Add TODO
This commit is contained in:
parent
eb54c62886
commit
5583007adb
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ module.exports = (server: http.Server) => {
|
|||
|
||||
ws.on('request', async (request) => {
|
||||
const q = request.resourceURL.query as ParsedUrlQuery;
|
||||
|
||||
// TODO: トークンが間違ってるなどしてauthenticateに失敗したら
|
||||
// コネクション切断するなりエラーメッセージ返すなりする
|
||||
// (現状はエラーがキャッチされておらずサーバーのログに流れて邪魔なので)
|
||||
const [user, app] = await authenticate(q.i as string);
|
||||
|
||||
const connection = request.accept();
|
||||
|
|
Loading…
Reference in a new issue