Created
June 14, 2015 11:54
-
-
Save zeroows/d0a904371697f271e180 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var loc = window.location, new_uri; | |
| if (loc.protocol === "https:") { | |
| new_uri = "wss:"; | |
| } else { | |
| new_uri = "ws:"; | |
| } | |
| new_uri += "//" + loc.host; | |
| var ws_location += loc.pathname + "/wsmessage"; | |
| var client = ngstomp(ws_location, { | |
| debug: false, | |
| devel: false | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment