swat.cas.connection.getone
- swat.cas.connection.getone(connection, datamsghandler=None)
Get a single response from a connection
- Parameters:
- connectionCAS object
The connection/CASAction to get the response from.
- datamsghandlerCASDataMsgHandler object, optional
The object to use for data messages from the server.
- Returns:
- CASResponse object
See also
Examples
>>> conn = swat.CAS() >>> conn.invoke('serverstatus') >>> print(getone(conn))