
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
crosswalk-channels
Advanced tools
A crosswalk shared module to easily send data one way from the server to client(s). Values can be sent to individual players or to all players.
IMPORTANT
This module will make use of PlayerGui
to store instances, so to prevent them from being deleted when the character reloads, you must disable the ResetPlayerGuiOnSpawn
property of StarterGui
. Disable this property by running this line in the command bar:
game.StarterGui.ResetPlayerGuiOnSpawn = false
Add crosswalk-channels
in your dependencies:
yarn add crosswalk-channels
Or if you are using npm
:
npm install crosswalk-channels
Put the Channels.rbxm file inside your crosswalk shared modules folder.
This plugin for crosswalk is available under the MIT license. See LICENSE.txt for details.
Publish values on a channel that any player can listen to.
Channels.Send(channelName: string, value: unknown)
Publish values on a channel for a single player.
Channels.SendLocal(player: Player, channelName: string, value: unknown)
Listen for changes on a channel (using Channels.Send
).
Bind<T>(channelName: string, func: (T) -> ()): () -> ()
Send
).Listen for changes on a local channel (using Channels.SendLocal
).
BindPlayer<T>(channelName: string, func: (Player, T) -> ()): () -> ()
SendLocal
).Listen for changes on a channel.
Bind<T>(channelName: string, func: (T) -> ()): () -> ()
local disconnect = Channels.Bind("timer", function(newValue)
end)
-- ... when needed, you can disconnect the callback by calling the `disconnect` function
disconnect()
FAQs
A crosswalk shared module to send data to clients
We found that crosswalk-channels demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.