Skip to content

Commit 5b04e54

Browse files
committed
fix logout
1 parent 5921d23 commit 5b04e54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/api.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ const messageBuffer = new Array(bufferSize);
6565
let messageIndex = 0;
6666

6767
app.io.on('connection', socket => {
68+
if (!socket._feathers) {
69+
// https://github.com/feathersjs/authentication/pull/604
70+
socket._feathers = {};
71+
}
6872
const user = socket.feathers.user ? { ...socket.feathers.user, password: undefined } : undefined;
6973
socket.emit('news', { msg: "'Hello World!' from server", user });
7074

0 commit comments

Comments
 (0)