Websocket Tools

Library

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

kicks updated 2y ago 0 MB engine 17
thumb_up 2 open_in_new View on sbox.game
Websocket Tools

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

No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: nolankicks.websocket_tools
Created: 2024-07-07 20:50 UTC
Updated: 2024-08-16 17:16 UTC
Type: library
Public: Yes
Version: 66501
files: 23
Size: 0.1 MB
Engine Version: 17
Asset Version ID: 66501
Version Created: 2024-08-16 17:16 UTC
Hash: 3531929433778513325
Manifest: Open manifest
new_releases Latest Update Aug 16, 2024
Changes on 2024-08-16
66501 Aug 16, 2024
Changes on 2024-08-16
66499 Aug 16, 2024
Changes on 2024-08-16
66498 Aug 16, 2024
Changes on 2024-08-16
66496 Aug 16, 2024
Changes on 2024-08-16
66207 Aug 15, 2024
Changes on 2024-08-15
66151 Aug 14, 2024
Try to fix json tags
59986 Jul 8, 2024
Changes on 2024-07-08
59942 Jul 7, 2024
Changes on 2024-07-07
59941 Jul 7, 2024
Changes on 2024-07-07
59940 Jul 7, 2024
Changes on 2024-07-07
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.