Web Socket custom Wrapper -- 2

Job ID: 35503621

Budget: $30 – $250 USD

IMPORTANT:
1. Custom bids
2. Bid how much you want to charge for the project

I am looking for someone to do a custom websocket wrapper for my project.

Functionality:
1. It should persist the connection
2. It should be able to issue commands through functions

Details:
I am connecting by WebSocket to multiple servers and issuing commands remotely.
I need to be able to call either of the WebSockets open dynamically and send a command.

Functions that I need support for:
FN1
RconInitFn(serverid, ip, port, password)

yourRconStartFN(uniqueid, IP, PORT, PASSWORD)

returns state if its turned on or not

FN2
rconCommand(uniqueid, command, identifier)
- uniqueid- identifies to which rcon to send to
- command to be send to rcon
- identifier, standard to wait for response related to issued command, you await msg with same identifier

calls your function to send command to serverid that was assigned in serverRconStartFN

returns answer from that websocket
Return should have state + response

Example state and response:
success = (1, raw answer)
timeout = (2, null)
error = (3, error)

Considerations:
Answer can be string or json, you can see in that wrapper im using they handle this case so you can copy
I should be able to start multiple websockets and call them with a temporary stored variable which I could use to issue a command to the websocket any time.