SocketIO Client Command Line Application for Windows, OSX and Linux64

Socket.IO Client Commands

Fully Featured Application

Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers. It has two parts: a client-side library that runs in the browser, and a server-side library for Node.js. Both components have a nearly identical API. Like Node.js, it is event-driven.

Supported APIs

Client component supports APIs: 0.*, 1.* and 2.*

Socket.IO Client Win32

Socket.IO Client Win32
SocketIO Client Win32

Socket.IO Client Win64

Socket.IO Client Win64
SocketIO Client Win64

Socket.IO Client OSX64

Socket.IO Client OSX64
SocketIO Client OSX64

Socket.IO Client OSXARM64

Socket.IO Client OSXARM64
SocketIO Client OSXARM64

Socket.IO Client Linux64

Socket.IO Client Linux64
SocketIO Client Linux64

How Open a new Socket.IO Connection

Example: open a websocket connection to Socket.IO server

{"message":"open", "params":{"url": "wss://socket-io-chat.now.sh"}}

How send a message

Example: invoke "add user" method

{"message":"write", "params":{"text": "42["add user", "John"]"}}

 

How close connection

{"message":"close"}

 

TCP Server

All console applications can run an internal TCP Server that allows to send and receive commands as if were written directly on the console application.

Just start the application with the command -server and a new server will be started listening on port 8080. Example: if you want enable the server on WebSocket client, start the console application as follows:

sgcWebSocketClient.exe -server

Find below the full TCP Server parameters:

-server: starts the internal server on port 8080

-server.port: sets the listening port

-server.ip: sets the binding ip (useful if there are multiple ips).

If the server is enabled, a client connected to this server can send any JSON message and will receive any response as if was written directly from console application.

Example: if you want enable server on IP 192.168.1.1 and Port 5412

sgcWebSocketClient.exe -server -server.ip 192.168.1.1 -server.port 5412