\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(  wsServer) : 

Constructor

Parameters

wsServer

URL to IQRF Gateway Daemon's WebSocket server

Returns

sendSync()

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

Send IQRF JSON DPA request

Parameters

\App\IqrfNetModule\Models\ApiRequest request

IQRF JSON DPA request

timeout

WebSocket client timeout

Throws

\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException

Returns

mixed||string|int —

IQRF JSON DPA response