frontendbridge

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MIT Imports: 11 Imported by: 0

README

Application dependency to handle websocket communication between exosphere and a client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection added in v0.25.0

type Connection struct {
	// contains filtered or unexported fields
}

Connection represents a connection

type FrontendBridge

type FrontendBridge struct {
	// contains filtered or unexported fields
}

FrontendBridge handles communication between an Exosphere backend and a browser front-end using websockets

func NewFrontendBridge added in v0.27.0

func NewFrontendBridge(config exosocket.Config, messageBufferSize int, clientPort string) *FrontendBridge

NewFrontendBridge returns a FrontendBridge instance

func (*FrontendBridge) Close

func (w *FrontendBridge) Close() error

Close closes the server, all the open sockets, and nils the socketMap

func (*FrontendBridge) Open

func (w *FrontendBridge) Open() error

Open sets up connection to exocom and a server to listen for connections from clients

Jump to

Keyboard shortcuts

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