Use WebSocket to connect to the Jenkins master rather than using JNLP. See JEP-222 for more information.