---
title: "Websocket Tools - s&box library"
description: "A library that is designed to help simplify the process of interacting with Websockets"
canonical: "https://sbox.watch/libraries/nolankicks/websocket_tools/"
generated_at: "2026-07-22T23:15:23.138Z"
---

# Websocket Tools

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

- Type: library
- Ident: nolankicks.websocket_tools
- Creator: kicks
- Canonical: https://sbox.watch/libraries/nolankicks/websocket_tools/
- Markdown: https://sbox.watch/libraries/nolankicks/websocket_tools.md
- sbox.game: https://sbox.game/nolankicks/websocket_tools/
- Generated: 2026-07-22T23:15:23.138Z

## Stats

- 24h momentum: +0
- Terry score: 43%
- Favorites: 2
- Upvotes: 2
- Downvotes: 0
- Updated: Aug 16, 2024
- Created: Jul 7, 2024
- Size: 75.5 KB
- Files: 23
- Tags: 

## Description

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



## More by kicks

| Package | Ident | Players | Favorites | Upvotes | Score | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| Opium Postprocess | nolankicks.opiumpostprocess | 0 | 5 | 5 | 65% | https://sbox.watch/libraries/nolankicks/opiumpostprocess.md |
| Screen Shot Library | nolankicks.screenshotlibrary | 0 | 3 | 2 | 43% | https://sbox.watch/libraries/nolankicks/screenshotlibrary.md |
| No Clip Library | nolankicks.noclip | 0 | 3 | 0 | -- | https://sbox.watch/libraries/nolankicks/noclip.md |
| Kicks' Component Collection | nolankicks.kickscomponents | 0 | 1 | 0 | -- | https://sbox.watch/libraries/nolankicks/kickscomponents.md |
| Scene Loading Utility | nolankicks.sceneloadingutility | 0 | 0 | 0 | -- | https://sbox.watch/libraries/nolankicks/sceneloadingutility.md |
