\App\IqrfNetModule\ModelsWebSocketClient

WebSocket client

Summary

Methods
Properties
Constants
__construct()
sendSync()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  url) : 

Constructor

Parameters

url

URL to IQRF Gateway Daemon's WebSocket server

Returns

sendSync()

sendSync(\App\IqrfNetModule\Models\ApiRequest  request,   checkStatus = true,   timeout = 13) : mixed||string|int

Sends IQRF JSON API request

Parameters

\App\IqrfNetModule\Models\ApiRequest request

IQRF JSON API request

checkStatus

Check response status

timeout

WebSocket client timeout

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException
\App\IqrfNetModule\Models\UserErrorException

Returns

mixed||string|int —

IQRF JSON API response