mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-24 07:06:22 +09:00
refactor: use ===
This commit is contained in:
parent
8d5c9e96e4
commit
3c3140a100
@ -100,9 +100,9 @@ export function connectStream(user: any, channel: string, listener: (message: Re
|
||||
ws.on('open', () => {
|
||||
ws.on('message', data => {
|
||||
const msg = JSON.parse(data.toString());
|
||||
if (msg.type == 'channel' && msg.body.id == 'a') {
|
||||
if (msg.type === 'channel' && msg.body.id === 'a') {
|
||||
listener(msg.body);
|
||||
} else if (msg.type == 'connected' && msg.body.id == 'a') {
|
||||
} else if (msg.type === 'connected' && msg.body.id === 'a') {
|
||||
res(ws);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user