Socket.ClearDataAvailableHandler
--------------------------------

Clears the data available handler.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Socket](component_Socket.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Socket.ClearDataAvailableHandler"; SocketID ) 

**MBS**( **"Socket.ClearDataAvailableHandler";** /\* Clears the data available handler. \*/  
**$SocketID**) /\* The socket ID received by [Socket.Connect](SocketConnect.md) function.e.g. $sock \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SocketID | The socket ID received by [Socket.Connect](SocketConnect.md) function. | $sock |

### Result

Returns OK or error message.

### Description

Clears the data available handler.  
### See also

- [PortMidi.ClearDataAvailableHandler](PortMidiClearDataAvailableHandler.md)
- [SerialPort.ClearDataAvailableHandler](SerialPortClearDataAvailableHandler.md)
- [Socket.Connect](SocketConnect.md)
- [Socket.SetDataAvailableHandler](SocketSetDataAvailableHandler.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Socket.CheckAll](SocketCheckAll.md) - [Socket.ClearErrorHandler](SocketClearErrorHandler.md)

[HTML Version](SocketClearDataAvailableHandler.shtml)