We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e5b3a commit cbef165Copy full SHA for cbef165
src/Session/Middleware.js
@@ -76,6 +76,22 @@ class SessionMiddleware {
76
await ctx.session.commit()
77
}
78
79
+
80
+ /**
81
+ * Initiates the session store in ready only mode
82
+ *
83
+ * @method wsHandle
84
85
+ * @param {Session} options.session
86
+ * @param {Function} next
87
88
+ * @return {void}
89
+ */
90
+ async wsHandle ({ session }, next) {
91
+ await session.instantiate(true)
92
+ debug('session store initiated in read only mode')
93
+ await next()
94
+ }
95
96
97
module.exports = SessionMiddleware
0 commit comments