🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@braincloud/s2s

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braincloud/s2s

brianCloud S2S module

Source
npmnpm
Version
6.0.0
Version published
Weekly downloads
4
-66.67%
Maintainers
7
Weekly downloads
 
Created
Source

brainclouds2s-node

brainCloud S2S client Node JS library

var brainclouds2s = require('@braincloud/s2s');

// Fill in your needed app info
appId = "00000";
serverName = "myServerName";
serverSecret = "aaaaaaaa-bbbb-0000-cccc-111111111111";

var S2S = {}
S2S.context = brainclouds2s.init(appId, serverName, serverSecret);

// Example S2S Call
brainclouds2s.request(S2S.context, {
    service: "lobby",
    operation: "SYS_ROOM_ASSIGNED",
    data: {
        lobbyId: "...",
        connectInfo: {
            roomId: "...",
            url: "...",
            port: "...",
            wsPort: "..."
        }
    }
});

Config Info

App Id is viewable on the Design | Core App Info | Application IDs page.

Server Name and Server Secret can be set on the Design | Core App Info | S2S Config page.

Server Example

An example of creating a S2S connection with brainCloud can be found with the Warstone example, in the rsm folder.

API Reference

Additional documentation on the S2S calls can be found here.

Keywords

braincloud

FAQs

Package last updated on 30 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts