Link

Top  Previous  Next

Message

 

Link <code>

 

Originator

 

Client

 

Response

 

This command does not work through a normal socket.

 

Response (immediate socket)

 

Success

Failure

 

Details

 

When a new immediate socket has been connected, the server does not know which client it belongs to. At this stage, the only command that the server will respond to on this socket is the Link command. As the client, you should send a Link command with the code you received from the server (see Code). Once the socket has been successfully linked to the client, it is fully operational.        

 

This command only works when the immediate socket is not yet connected to a client. If you send it once the immediate socket has been connected, an error will be generated.

 

Revision history

 

Implemented in WhiskerServer version 1.

 

See also

 

The two-socket system
Code