|Last updated||1 day ago|
|Created||2 years ago|
|Project source||Project URL|
|Report bugs||Bug tracker URL|
A library for simplifying working with foundries sockets. This module does not have any user facing features. You only need to install it if one of the modules you use lists it as a dependency.
This library makes it easy to execute functions in the clients of other connected users. Parameters can be passed to the remote functions as easy as they can be passed to regular functions and it's possible to retrieve the return value of the remote function via
await. The features of socketlib are:
await. If multiple GMs are connected, socketlib will make sure only one of the GMs will execute the function.
Documentation of the modules capabilities and example code is avaliable here.
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: socketlib or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.
Having this resource to make working with sockets easier has been a big boon to module development. It’s also been a great resource for looking into how best to work with sockets in the Foundry ecosystem, even in situations where the dependency isn’t desired.
While not necessary for regular users in and of itself, this provides a very easy way for other developers to utilize sockets for messaging in their modules. Need to broadcast a message to all clients, implement a GM proxy, or send a message to a specific client? This module has got you covered.