Hi Chad,
It is being released this week for 4.5
It is already in the develop branch here: https://github.com/getbraincloud/brainclouds2s-csharp/tree/develop
Hi Chad,
It is being released this week for 4.5
It is already in the develop branch here: https://github.com/getbraincloud/brainclouds2s-csharp/tree/develop
Hi Chad,
The JS library is using localStorage to store "sessions id", "profile id" and "anonymous id". Username/emails/passwords are not stored. Only the information necessary to restore a previous session. As for implementation details about localStorage, it all depends on the app framework/browser you are using.
There is no native code in our JS library, correct. We do have native versions of the library (C++ and Objective-C). But if you want a web app, those are not useful to you.
We have an NPM module for it and a minified .js file for webpages. There are many frameworks out there, so there might be minor code change to be done depending on which framework you are using.
If you are using our JS library, even inside a framework or on any device (You mentioned Android), the platform used by brainCloud is always going to be "WEB".
Hope this helps. Did I understand your question(s) correctly?
David
Hi Henry,
Yes the data received is in JSON. And brainCloud expects a JSON when you update the entity. What you can do is create a serialize and a deserialize method inside your custom type.
Hi Chad,
It is being released this week for 4.5
It is already in the develop branch here: https://github.com/getbraincloud/brainclouds2s-csharp/tree/develop
I don't have estimates for it, sorry. But it's at the top of our TODO list.
Hi,
So the C# S2S library is planned here for very soon. You might not have to build one yourself. But you can do the calls directly with HTTP anyway meanwhile and upgrade to our S2S once we release it. I'll note this thread and let you know once we release it.
Hi Again,
From docker hud, you need to give read access to this user: braincloudhost
Hi Chad,
First, a reminder that Room Servers are still in Beta. It is fully working, but some Libs+Examples are missing.
We do not have a custom server example for Unity yet. Only for relay servers. It is however planned. I would like to have more details on your setup. Your dedicated server is an instance of Unity you said. As a Linux, console-only application? What Network API does it use? I thought Unity killed UNET. Is your dedicated server just a .NET application then?
To notify brainCloud that your server is ready, you have to use the S2S library which we do not have a C# implementation currently, but it is planned. You can still do the calls yourself with any HTTP library. This is also how you will request the Lobby from brainCloud for your room server. You can look at our other libraries implement S2S calls for details: https://github.com/getbraincloud?utf8=✓&q=s2s&type=&language=
Your docker repo does not have to be public. I am currently researching for you how to make this work. If I recall we have a brainCloud docker user you have to allow on your repository. I will come back to you on this.
Another very useful example is our Web(Javascript) WarStone example: https://github.com/getbraincloud/examples-javascript/blob/master/warstone/readme.md
David
Hi Chris,
There is no problem with running the library on a Node.js server. We do the same with our unit tests. One little caveat is that you'll have to include those definitions somewhere at the top of your main file:
// Set up XMLHttpRequest.
XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
window = {
XMLHttpRequest: XMLHttpRequest
};
XMLHttpRequest.UNSENT = 0;
XMLHttpRequest.OPENED = 1;
XMLHttpRequest.HEADERS_RECEIVED = 2;
XMLHttpRequest.LOADING = 3;
XMLHttpRequest.DONE = 4;
// Set up WebSocket.
WebSocket = require('ws');
// Set up LocalStorage.
LocalStorage = require('node-localstorage/LocalStorage').LocalStorage;
os = require('os');
var configDir = os.homedir() + "/.bciot";
localStorage = new LocalStorage(configDir);
const BC = require('braincloud');
And you'll have to install those NPM dependencies:
{
"dependencies": {
"braincloud": "^4.3.6",
"node-localstorage": "^2.1.5",
"ws": "^7.2.1",
"xmlhttprequest": "^1.8.0"
}
}
Hope this helps.