Skip to the content.

SocketIO Examples for SquadJS

With this short repo/guide I did try to show how you can use the socketIO connection with your SquadJS server.

This repo will be updated from time to time with more examples and with a UI version of the guide.

The current guide is at the main.js file

Please ask all your questions at our Discord server;
Discord

WIP UI Guide

Why use socketIO plugin?

SquadJS had needs of an API-like system. Therefor we made the plugin socketIO.

Socket.IO is a library that enables real-time, bidirectional and event-based communication between the client and the server.

SocketIO is proven to be fast and reliable.
It also reuses the RCON connection that SquadJS already has made and can simultaneously listen and broadcast to hundreds of clients.

Installation Guide

Before you can use socketIO-client to establish a connection with SquadJS server you need to have a working NodeJS project or you can clone this repo and build your project up on this. Also you might also check the pre-requirements before you start.

Other Pre Requirements;

Stap 1 - Installation

Installing the socket.io-client package.

Stap 2 - Initialization

Importing/Requiring the package to the file/script.

Stap 3 - Usage / examples

** ON PROGRESS **