Bibliothèques

liste des bibliothèques s&box

Websocket Tools

nolankicks.websocket_tools

A library that is designed to help simplify the process of interacting with Websockets

À propos

About Websocket Tools

This library is designed to help simplify the process of interacting with Websockets.
You are able to serialize text into a json or send a string.

Source: https://github.com/Nolankicks/sbox-websocket-tools

API

public class WebsocketTools
{
//The websocket URL
string url;
//Where you want to fetch from the websocket, not used in Send()
public enum Fetch
{
OnUpdate,
OnFixedUpdate,
OnStart,
}
//An action called when a message is recived from the websocket
public delegate void OnMessageReceived( string message );
//A game resource that holds Json or string data to be send to the Websocket
public WebsocketMessage message;
}

public class WebSocketUtility
{
//Sends a message over a websocket connection
public static async Task SendAsync( WebsocketTools websocketTools );
//Sends a string over a websocket connection
public static async Task SendStringAsync( string url, string message )
}

Médias

01
Vignette de Opium Postprocess
Opium Postprocessnolankicks.opiumpostprocess

A Retro Console Shader

+024 h
5favoris
5votes positifs
65%Terry Score
02
Vignette de Screen Shot Library
Screen Shot Librarynolankicks.screenshotlibrary

A library that allows screenshotting of a scene

+024 h
3favoris
2votes positifs
43%Terry Score
03
Vignette de No Clip Library
No Clip Librarynolankicks.noclip

No summary provided.

+024 h
3favoris
0votes positifs
--Terry Score
05
Vignette de Scene Loading Utility
Scene Loading Utilitynolankicks.sceneloadingutility

No summary provided.

+024 h
0favoris
0votes positifs
--Terry Score