Purpose:Establish a WebSocket connection to a server and send a string.


Format:WEBSOCKET [/V /Origin=server /User=user /Password=password]] "ws:servername" string


/Origin HTTP header
/User (for auth)
/Password (for auth)
string (text to send)




The options are position dependent; they can only appear at the beginning of the command line in the order specified above.







/V(erbose) - Display status messages


/Origin - If specified, WEBSOCKET will include an Origin HTTP header in the connection request with the value provided. Servers may use this value to validate requests. Servers may reject requests depending on the value provided. A typical value that would be set is of the form "http://example.com".


/User - The user name if authentication is used


/Password - The password if authentication is used


servername - The WebSocket server to connect to. For example: "ws://echo.websocket.org"


string - The text to send to the server