Software /
code /
prosody
Comparison
plugins/mod_websocket.lua @ 8789:4ae8dd415e94 0.10.1
mod_websocket: Store the request object on the session for use by other modules
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 08 May 2018 07:11:33 +0100 |
parent | 8145:4d0f5ea19851 |
child | 8794:0e2c1c4d4f78 |
comparison
equal
deleted
inserted
replaced
8758:c380a22d52d5 | 8789:4ae8dd415e94 |
---|---|
255 c2s_listener.onconnect(conn); | 255 c2s_listener.onconnect(conn); |
256 | 256 |
257 local session = sessions[conn]; | 257 local session = sessions[conn]; |
258 | 258 |
259 session.secure = consider_websocket_secure or session.secure; | 259 session.secure = consider_websocket_secure or session.secure; |
260 session.websocket_request = request; | |
260 | 261 |
261 session.open_stream = session_open_stream; | 262 session.open_stream = session_open_stream; |
262 session.close = session_close; | 263 session.close = session_close; |
263 | 264 |
264 local frameBuffer = ""; | 265 local frameBuffer = ""; |