Socketio.getSocketId()

Get the unique ID of the client socket making this virtual HTTP request.

Usage

Hover over inputs/exits for more info.

var Socketio = require('machinepack-sockets');


// Get the unique ID of the client socket making this virtual HTTP request.

Socketio.getSocketId({

}).execSync();

Inputs

Exits

error

An unexpected error occurred.

reqNotCompatible

This request did not originate from Socket.io.

success

OK.

'abc123'