mirror of
https://github.com/jochenvg/mqtt2ws.git
synced 2025-09-26 20:11:10 +08:00
renaming paho import
This commit is contained in:
4
main.go
4
main.go
@@ -6,7 +6,7 @@ import (
|
||||
"log"
|
||||
"net"
|
||||
|
||||
paho "github.com/eclipse/paho.mqtt.golang"
|
||||
"github.com/eclipse/paho.mqtt.golang"
|
||||
"github.com/eclipse/paho.mqtt.golang/packets"
|
||||
)
|
||||
|
||||
@@ -41,7 +41,7 @@ func main() {
|
||||
defer s.Close()
|
||||
|
||||
// Create MQTT-WS client
|
||||
ws, err := paho.NewWebsocket(*url, nil, 0, nil, nil)
|
||||
ws, err := mqtt.NewWebsocket(*url, nil, 0, nil, nil)
|
||||
if err != nil {
|
||||
log.Println("Websocket error", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user