Connecting
We are using SocketIO v4.4.0 to implement our realtime data syncronisation.

Before establishing a WebSocket connection, it is essential to obtain an authentication token through the PMS login endpoint. Upon acquiring your token, you can then initiate a connection to Parklio's WebSocket channels. The examples provided below guide you on how to seamlessly connect using the specified namespace 'v2/realtime'. Follow these examples to ensure a successful WebSocket connection setup.
const socket = io("wss://api.parklio.com/v2/realtime", {
path: "/socketio",
query: {
token: "<token>",
},
});