Libraries

s&box libraries

Websocket Tools

nolankicks.websocket_tools

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

About

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 )
}

Media

More by kicks

01
Opium Postprocess thumbnail
Opium Postprocess nolankicks.opiumpostprocess

A Retro Console Shader

+0 24h
4favorites
4upvotes
51%Wilson score
02
Screen Shot Library thumbnail
Screen Shot Library nolankicks.screenshotlibrary

A library that allows screenshotting of a scene

+0 24h
3favorites
2upvotes
34%Wilson score
03
No Clip Library thumbnail
No Clip Library nolankicks.noclip

No summary provided.

+0 24h
3favorites
0upvotes
--Wilson score
05
Scene Loading Utility thumbnail
Scene Loading Utility nolankicks.sceneloadingutility

No summary provided.

+0 24h
0favorites
0upvotes
--Wilson score