ws

package
v0.0.0-...-541d478 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package ws handles the websocket interface of otter

Index

Constants

This section is empty.

Variables

View Source
var Auth auth.Auth

Auth needs to be set in order to properly handle authentication

Functions

func Init

func Init(secret string, numReaders int)

Init initializes connection routing

func NewHandler

func NewHandler() http.Handler

NewHandler returns an http.Handler which handles the websocket interface

Types

type Error

type Error struct {
	Error error `json:"error"`
}

Error is pushed to the connection when something unexpected has occurred

type SubListRes

type SubListRes struct {
	Conns []conn.Conn `json:"conns"`
}

SubListRes is the structur that the list of connection objects from a call to /subbed will be returned in

Jump to

Keyboard shortcuts

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