wsutil

package
v0.0.0-...-840a1b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(c *gin.Context) (ws *melody.Melody)

Get gets the WebSocket connection from the Gin context.

Types

type Engine

type Engine struct {
	Gin *gin.Engine
}

Engine stores the Gin engine and the handler functions.

func New

func New(e *gin.Engine) *Engine

New creates the new WebSocket handler engine.

func (*Engine) Handle

func (e *Engine) Handle(relativePath string, handler gin.HandlerFunc)

Handle handles the incoming websocket request with the specified path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL