
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@braincloud/s2s
Advanced tools
brainCloud S2S (server-to-server) client Node JS library
Package renamed. This library now ships as
@braincloud/s2s(the@braincloudnpm scope). The old unscopedbrainclouds2spackage is deprecated — switch your dependency to@braincloud/s2s. The API is unchanged; only the package name moved.Building a game/app client instead? This is the server-to-server library. For in-game/app calls use the companion package
@braincloud/client(formerlybraincloud).
npm install @braincloud/s2s
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: "..."
}
}
});
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.
An example of creating a S2S connection with brainCloud can be found with the Warstone example, in the rsm folder.
Additional documentation on the S2S calls can be found here.
FAQs
brainCloud S2S module
We found that @braincloud/s2s demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.