库

s&box 库列表

Websocket Tools

nolankicks.websocket_tools

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

关于

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

媒体

更多作品,作者: kicks

查看创作团队分析 →
01
Opium Postprocess 缩略图
Opium Postprocessnolankicks.opiumpostprocess

A Retro Console Shader

+024小时
5收藏
5好评
65%Terry 评分
02
Screen Shot Library 缩略图
Screen Shot Librarynolankicks.screenshotlibrary

A library that allows screenshotting of a scene

+024小时
3收藏
2好评
43%Terry 评分
03
No Clip Library 缩略图
No Clip Librarynolankicks.noclip

No summary provided.

+024小时
3收藏
0好评
--Terry 评分
05
Scene Loading Utility 缩略图
Scene Loading Utilitynolankicks.sceneloadingutility

No summary provided.

+024小时
0收藏
0好评
--Terry 评分