Websocket stomp implementation
Go to file
moxitech b1d201306b first commit 2024-10-08 11:17:08 +07:00
Readme.md first commit 2024-10-08 11:17:08 +07:00
go.mod first commit 2024-10-08 11:17:08 +07:00
go.sum first commit 2024-10-08 11:17:08 +07:00
wsstomp.go first commit 2024-10-08 11:17:08 +07:00

Readme.md

Real stomp - websocket impl stomp library in go

How to use?

go get "git.sis.ski/moxitech/realstomp-go"

Example of create connection:

// Stomper interface defines the basic methods 
type Stomper interface {
	Send(topic string, id int, data []byte) error
}

// StompClient implements the Stomper interface
type StompClient struct {
	conn         *stomp.Conn
	state        bool
	brokerURL    string
	waitMessages map[string]*time.Timer
	mutex        sync.Mutex
}

// make client from StompClient and invoke connect method