Class ApiSocketAdapter