Documentation ¶
Overview ¶
Connect and Disconnect from a STOMP broker using TCP.
Examples: # Connect to a broker with all defaults: # Host is "localhost" # Port is 61613 # Login is "guest" # Passcode is "guest # Virtual Host is "localhost" # Protocol is 1.1 go run conndisc.go # Connect to a broker using STOMP protocol level 1.0: STOMP_PROTOCOL=1.0 go run conndisc.go # Connect to a broker using a custom host and port: STOMP_HOST=tjjackson STOMP_PORT=62613 go run conndisc.go # Connect to a broker using a custom port and virtual host: STOMP_PORT=41613 STOMP_VHOST="/" go run conndisc.go # Connect to a broker using a custom login and passcode: STOMP_LOGIN="userid" STOMP_PASSCODE="t0ps3cr3t" go run conndisc.go
Click to show internal directories.
Click to hide internal directories.