<types ns="_idio">
  <type name="WebSocketConfig" desc="Options for the web socket protocol communication.">
    <prop boolean name="log" default="true">
      Whether to log on connect and disconnect.
    </prop>
    <fn opt void name="onMessage">
      <arg string name="clientID">
        The unique ID of the client.
      </arg>
      <arg string name="message">
        A message sent by the client.
      </arg>
      The callback when a message is received from a client.
    </fn>
    <fn opt void name="onConnect">
      <arg string name="clientID">
        The unique ID of the client.
      </arg>
      The callback when a client is connected.
    </fn>
  </type>
</types>