1. Connect Server
Connect to a WebSocket server
- Url: Connected server address
- Protocols:Additional protocols added, do not need to be passed in by default
- Upgrade Headers:Added extra header data, which does not need to be passed in by default
- Auto Reconnect:Whether it will automatically reconnect after a short connection
- Connected: Connection success callback notification
- ConnectionError: Connection failure callback notification
- Closed:Disconnect callback notification
- Message:Server message callback notification
2. Send Message
send message to server
- Msg:String data message sent
3. Close Connect
Close the connection to the server