• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
David St-Louis 0D

David St-Louis 0

@David St-Louis 0
About
Posts
8
Topics
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    Web client security
  • David St-Louis 0D David St-Louis 0

    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


  • Recommended way to read Entity data? (Unity, C#)
  • David St-Louis 0D David St-Louis 0

    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.


  • Unity Room Server
  • David St-Louis 0D David St-Louis 0

    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


  • Unity Room Server
  • David St-Louis 0D David St-Louis 0

    I don't have estimates for it, sorry. But it's at the top of our TODO list.


  • Unity Room Server
  • David St-Louis 0D David St-Louis 0

    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.


  • Unity Room Server
  • David St-Louis 0D David St-Louis 0

    Hi Again,

    From docker hud, you need to give read access to this user: braincloudhost


  • Unity Room Server
  • David St-Louis 0D David St-Louis 0

    Hi Chad,

    First, a reminder that Room Servers are still in Beta. It is fully working, but some Libs+Examples are missing.

    1. 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?

    2. 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=

    3. 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


  • NodeJS setup question
  • David St-Louis 0D David St-Louis 0

    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.

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users