Skip to content

Commit 3904b7f

Browse files
authored
Update README.md
1 parent 91b79d2 commit 3904b7f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ socket.on("start", ()=>{
2727
socket.writeCommand("say console connected!");
2828
})
2929
```
30+
### How do I find the parameters needed to create a new pterosocket?
31+
Regardless the hosting company your server is hosted by, each panel has a fixed structure. For example the webpage from which you access your console will have this format:
32+
```{origin}/server/{server number}```. So, if your hosting company is e.g. ```www.bisecthosting.com``` (one of several gaming companies), your console website address will be ```https://games.bisecthosting.com/server/274w3925```, and your code will be as follows
33+
```js
34+
const origin = "https://games.bisecthosting.com"; //everything that comes before "/server" in the console url
35+
const server_no = "274w3925"; //everything that comes after "/server/" in the console url
36+
```
37+
Now in order to generate an API key for the pterosocket instance you need to navigate to this page ```{origin}/account/api``` (in our example it will be ```https://games.bisecthosting.com/account/api```) and generate a new API key, which we can add to our code.
38+
```js
39+
const api_key = "dwaQaLKSWmVoZfJ7jC2rAnhW6y6mKAUPuF22bqqgA5daM79S"; //the api-key generated
40+
```
41+

0 commit comments

Comments
 (0)