You are here

function nodejs_get_client_socket_id in Node.js integration 8

Same name and namespace in other branches
  1. 6 nodejs.module \nodejs_get_client_socket_id()
  2. 7 nodejs.module \nodejs_get_client_socket_id()

Get the client socket id associated with this request.

File

./nodejs.module, line 649

Code

function nodejs_get_client_socket_id() {
  $client_socket_id = isset($_POST['nodejs_client_socket_id']) ? $_POST['nodejs_client_socket_id'] : '';
  return preg_match('/^[0-9a-z_-]+$/i', $client_socket_id) ? $client_socket_id : '';
}