8000 How to use WebSockex through a http proxy · Issue #37 · dominicletz/websockex · GitHub
[go: up one dir, main page]

Skip to content
  • How to use WebSockex through a http proxy #37

    Open

    Description

    @tht

    I need to open a websocket connection through a http proxy. The proxy does support websockets when I use a web browser as client.

    Is there a way to configure WebSockex to use an http proxy?

    Activity

    1. changed the title [-]How tu use WebSockex through a http proxy[/-] [+]How to use WebSockex through a http proxy[/+] on Sep 2, 2017
    2. tht commented on Sep 2, 2017

      @tht
      Author

      Looks like supporting a proxy is not that difficult.

      You have to redirect the TCP socket, send a request to the proxy and parse its response. After this additional step everything else is the same as before.

      I hacked it into your library, the result is here: https://github.com/tht/websockex

      It seems to work nicely but it's far from being ready for a pull request. SSL is not supported when using a proxy and there are no tests.

    3. Azolo commented on Sep 14, 2017

      @Azolo
      Collaborator

      Awesome, thanks for the heads up and working code sample.

      I'll look into getting this integrated or if nothing else at least a way to make a request through an existing proxy connection.

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

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

      • 0