Skip to content

Feature request: Native proxy support without providing custom SocketFactory #575

Open
@a-zink

Description

@a-zink

The client allows to set a custom SocketFactory which allows the connection to be established over a proxy. However this is quite cumbersome. Using a proxy should be an easy-to-use feature of the client because this is a quite common use-case. Especially for mqtt over websockets, which is already supported.

There are basically two use-cases for mqtt over websockets
(also see introduction chapter in amqp over websockets which is a related topic)

  • Enable browser based mqtt clients
  • Network restrictions, e.g within a company network. Most tcp traffic and arbitrary ports are usually blocked. However there might be an http proxy for internet access over ports 80 and 443. This allows us to use mqtt over websockets using the http proxy.

As this is the Java mqtt client, browser support is not the target use-case for websockets. Hence I argue that the only reason for using the websocket feature is network restrictions. However this feature is somehow incomplete without native proxy support.

Also see
#573
#319 (Only addresses socks proxy)
#419 (Seems to be a proxy auth issue. I would say this is out of scope, as workarounds like cntlm exist)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions