Server protocol
-
When the mapepire-server is started, it opens a websocket at
wss://<db2ServerHostname>:8076/db/
and listens for connections. -
The client calls
connect
either directly with an instance of theSQLJob
class or indirectly using theinit
method of thePool
class to initiate a connection with the server. -
Calling the execute method of the
SQLJob
,Query
, orPool
class will send a query object to the server with the following format: -
The server responds by sending back a message to the client with the corresponding query id, and some associated information. Ex.
-
The socket connection can be closed by calling the
close
method if theSQLJob
orQuery
class was being used or theend
method if thePool
class was used.