-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
I see there are some provisions for Origin header in https://github.com/lipp/lua-websockets/blob/master/src/websocket/handshake.lua#L54
However i could not find a way to supply origin for sync connect()? client_ev.lua does it because it has ws at hand
lua-websockets/src/websocket/client_ev.lua
Line 144 in 61cca37
| origin = ws.origin, |
sync.lua?
I 'hacked' my way by adding extra argument to connect() and then extending the table
https://github.com/lipp/lua-websockets/blob/master/src/websocket/sync.lua#L149
But not at all sure that's the way - isn't there something more elegant?
Metadata
Metadata
Assignees
Labels
No labels