# GetSocketByte

## Description

Will read a single byte from the socket connection and return it. If there is no data waiting to be read then this command will return immediately and return 0. You can check how much data there is to read by using GetSocketBytesAvailable.

## Definition

integer GetSocketByte( socketID )

int agk::GetSocketByte( UINT socketID )

## Parameters

- socketID - The ID of the socket to read