connectionHandler

package
v0.0.0-...-1d5e4ec Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMIT_TO_CLIENT      = "server-event"
	RECEIVE_FROM_CLIENT = "client-event"
)

Variables

View Source
var (
	Ready       = make(chan int)
	ClientEvent = make(chan *common.Operation)
	PeerEvent   = make(chan *common.PeerOperation)
)
View Source
var ValueToEmit chan string

Functions

func AcceptSocketIoConnectionOn

func AcceptSocketIoConnectionOn(port int, cHandler connectionHandler, eHandler eventHandler)

func SendDocToClient

func SendDocToClient(doc string)

func Start

func Start(host string, port int, ctype string, peers []string)

Types

type Server

type Server struct {
	socketio.Server
}

func (Server) ServeHTTP

func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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