sockets

package
v0.0.0-...-85d39bf Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(w http.ResponseWriter, r *http.Request)

Send ...

func Subscribe

func Subscribe(w http.ResponseWriter, r *http.Request)

Subscribe ...

Types

type Message

type Message struct {
	Timestamp string     `json:"timestamp"`
	Message   string     `json:"message"`
	User      users.User `json:"user"`
	ID        string     `json:"_id"`
}

Message ...

Jump to

Keyboard shortcuts

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