Skip to content

No way to pass Origin in sync client #95

Description

@EnTerr

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

origin = ws.origin,
- but how am i supposed to do that for 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions