Skip to content

chuyeow/spec

Repository files navigation

gomqtt/spec

Build Status Coverage Status GoDoc Release Go Report Card

Package spec provides functionality for testing MQTT 3.1.1 broker implementations.

Installation

Get it using go's standard toolset:

$ go get github.com/gomqtt/spec

Usage

func TestSpec(t *testing.T) {
	config := AllFeatures()
	config.URL = "tcp://localhost:1883"

	// mosquitto specific config
	config.Authentication = false
	config.MessageRetainWait = 300 * time.Millisecond
	config.NoMessageWait = 100 * time.Millisecond

	Run(t, config)
}

About

go package for testing mqtt broker implementations

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages