0
0

Improve streaming

This commit is contained in:
syuilo 2018-11-12 00:31:09 +09:00
parent 8674d55c8e
commit c2038bec73
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -16,11 +16,11 @@ module.exports = (server: http.Server) => {
}); });
ws.on('request', async (request) => { ws.on('request', async (request) => {
const connection = request.accept();
const q = request.resourceURL.query as ParsedUrlQuery; const q = request.resourceURL.query as ParsedUrlQuery;
const [user, app] = await authenticate(q.i as string); const [user, app] = await authenticate(q.i as string);
const connection = request.accept();
let ev: EventEmitter; let ev: EventEmitter;
if (config.redis) { if (config.redis) {