Skip to content

Commit

Permalink
Updated WS url
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Aponick committed Oct 5, 2018
1 parent de55881 commit 52a9e70
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Just add a `<script/>` tag to your HTML page like so :

Instantiate a client in your JavaScript code :

const client = new APIdaze.CLIENT({apiKey: "YOUR_API_KEY", wsurl: "ws2-dev-fr-par-1.apidaze.io"})
const client = new APIdaze.CLIENT({apiKey: "YOUR_API_KEY", wsurl: "fs-us-ny-1.apidaze.io:8082"})

This will connect you to the server named `ws2-dev-fr-par-1.apidaze.io`, and check your `apiKey` there. Once `client` has been properly instanciated, you'll be allowed to make calls, conferencing and send text messages and SMS according to the instructions available in your `External Script`.
This will connect you to the server named `fs-us-ny-1.apidaze.io`, and check your `apiKey` there. Once `client` has been properly instanciated, you'll be allowed to make calls, conferencing and send text messages and SMS according to the instructions available in your `External Script`.


# Run the examples locally
Expand Down
2 changes: 1 addition & 1 deletion samples/apikey_check/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

var apiKey = "YOUR_API_KEY";
var wsurl = "wss://ws2-dev-fr-par-1.apidaze.io";
var wsurl = "wss://fs-us-ny-1.apidaze.io:8082";

var APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apiKey,
Expand Down
2 changes: 1 addition & 1 deletion samples/apikey_check/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h3>
console.log("Checking...");
APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apikeyTextObj.value,
wsurl: "wss://ws2-dev-fr-par-1.apidaze.io",
wsurl: "wss://fs-us-ny-1.apidaze.io:8082",
debug: true,
onReady: function() {
alert("Success !");
Expand Down
2 changes: 1 addition & 1 deletion samples/apikey_check_and_login/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

var apiKey = "YOUR_API_KEY";
var wsurl = "wss://ws2-dev-fr-par-1.apidaze.io";
var wsurl = "wss://fs-us-ny-1.apidaze.io:8082";
var userid = "johndoe";

var APIdazeClientObj = new APIdaze.CLIENT({
Expand Down
2 changes: 1 addition & 1 deletion samples/apikey_check_and_login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3>

APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apikeyTextObj.value,
wsurl: "wss://ws2-dev-fr-par-1.apidaze.io",
wsurl: "wss://fs-us-ny-1.apidaze.io:8082",
debug: true,
userKeys: {
command: "auth",
Expand Down
2 changes: 1 addition & 1 deletion samples/audio_video_conference/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h3>

APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apikeyTextObj.value,
wsurl: "wss://ws2-dev-fr-par-1.apidaze.io",
wsurl: "wss://fs-us-ny-1.apidaze.io:8082",
debug: true,
onReady: function(sessionObj) {
joinRoomButtonObj.disabled = false;
Expand Down
2 changes: 1 addition & 1 deletion samples/receive_text/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

var apiKey = "YOUR_API_KEY";
var ws_server = "ws2-dev-fr-par-1.apidaze.io";
var ws_server = "fs-us-ny-1.apidaze.io:8082";
var wsurl = "wss://" + ws_server;
var userid = "johndoe";

Expand Down
4 changes: 2 additions & 2 deletions samples/receive_text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ <h3>

APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apikeyTextObj.value,
wsurl: "wss://ws2-dev-fr-par-1.apidaze.io",
wsurl: "wss://fs-us-ny-1.apidaze.io:8082",
debug: true,
userKeys: userKeys,
onReady: function(sessionObj) {
connectResultObj.innerHTML = "Logged in as " + sessionObj.id + " ! You may try to send a message by issuing the following cURL command :";
infoTextObj.innerHTML = "curl -X POST 'https://api4.apidaze.io/" + apikeyTextObj.value + "/chat/send' --data 'api_secret=YOURAPISECRET&from=me&to=" + sessionObj.id + "&ws_server=ws2-dev-fr-par-1.apidaze.io&text=Hello'";
infoTextObj.innerHTML = "curl -X POST 'https://api4.apidaze.io/" + apikeyTextObj.value + "/chat/send' --data 'api_secret=YOURAPISECRET&from=me&to=" + sessionObj.id + "&ws_server=fs-us-ny-1.apidaze.io:8082&text=Hello'";
toggleInputs();
},
onError: function(errorMessage){
Expand Down
2 changes: 1 addition & 1 deletion samples/rtt_to_server/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

var apiKey = "YOUR_API_KEY";
var wsurl = "wss://ws2-dev-fr-par-1.apidaze.io";
var wsurl = "wss://fs-us-ny-1.apidaze.io:8082";
var rttInterval = null;

var stopRTT = function() {
Expand Down
4 changes: 2 additions & 2 deletions samples/rtt_to_server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3>
</div>
<div id="serverInfoId" style="display:none">
<h4>
Server hostname : ws2-dev-fr-par-1.apidaze.io
Server hostname : fs-us-ny-1.apidaze.io
</h4>
<h4>
RTT : <span id="rttId">N/A</span> msec <span id="rttAppreciationId"></span>
Expand All @@ -48,7 +48,7 @@ <h4>
console.log("Connecting...");
APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apikeyTextObj.value,
wsurl: "wss://ws2-dev-fr-par-1.apidaze.io",
wsurl: "wss://fs-us-ny-1.apidaze.io:8082",
debug: true,
onReady: function() {
alert("Success !");
Expand Down
2 changes: 1 addition & 1 deletion samples/send_text/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

var apiKey = "YOUR_API_KEY";
var wsurl = "wss://ws2-dev-fr-par-1.apidaze.io";
var wsurl = "wss://fs-us-ny-1.apidaze.io:8082";
var text = "Hello there";

var APIdazeClientObj = new APIdaze.CLIENT({
Expand Down
2 changes: 1 addition & 1 deletion samples/send_text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h3>
console.log("Checking...");
APIdazeClientObj = new APIdaze.CLIENT({
apiKey: apikeyTextObj.value,
wsurl: "wss://ws2-dev-fr-par-1.apidaze.io",
wsurl: "wss://fs-us-ny-1.apidaze.io:8082",
debug: true,
onReady: function() {
APIdazeClientObj.sendText({
Expand Down

0 comments on commit 52a9e70

Please sign in to comment.