summaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in/olahol/melody.v1/doc.go
diff options
context:
space:
mode:
authorNikkyAI <root@nikky.moe>2020-08-26 22:27:00 +0200
committerGitHub <noreply@github.com>2020-08-26 22:27:00 +0200
commit27c02549c870680ea57a05757810ade80db42929 (patch)
tree011862f50e0101205afdb786ee3ff2503a677f22 /vendor/gopkg.in/olahol/melody.v1/doc.go
parent88d371c71c61aa8b68033b9c2dd4d7a8fc36e991 (diff)
downloadmatterbridge-msglm-27c02549c870680ea57a05757810ade80db42929.tar.gz
matterbridge-msglm-27c02549c870680ea57a05757810ade80db42929.tar.bz2
matterbridge-msglm-27c02549c870680ea57a05757810ade80db42929.zip
Replace gorilla with melody for websocket API (#1205)
Diffstat (limited to 'vendor/gopkg.in/olahol/melody.v1/doc.go')
-rw-r--r--vendor/gopkg.in/olahol/melody.v1/doc.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/gopkg.in/olahol/melody.v1/doc.go b/vendor/gopkg.in/olahol/melody.v1/doc.go
new file mode 100644
index 00000000..a65aa634
--- /dev/null
+++ b/vendor/gopkg.in/olahol/melody.v1/doc.go
@@ -0,0 +1,22 @@
+// Copyright 2015 Ola Holmström. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package melody implements a framework for dealing with WebSockets.
+//
+// Example
+//
+// A broadcasting echo server:
+//
+// func main() {
+// r := gin.Default()
+// m := melody.New()
+// r.GET("/ws", func(c *gin.Context) {
+// m.HandleRequest(c.Writer, c.Request)
+// })
+// m.HandleMessage(func(s *melody.Session, msg []byte) {
+// m.Broadcast(msg)
+// })
+// r.Run(":5000")
+// }
+package melody