I'm new at goinstant. I'm following the example and get the following error at runtime.
JavaScript runtime error: 'goinstant' is undefined
here is the code:
<script src="https://cdn.goinstant.net/v1/platform.min.js"></script>
<script>
var url = "https://goinstant.net/xxxxxxx/test";
var connect = goinstant.connect(url);
connect.then(function (result) {
var conn = result.connection;
var lobby = result.rooms[0];
alert(lobby);
});
</script>
Am I missing Something? I should caveat this by saying I got an error before this one regarding the platform.min.js . The error is:
JavaScript critical error at line 1, column 1 in https://cdn.goinstant.net/v1/platform.min.js\n\nSCRIPT1014: Invalid character