request

package
v0.0.0-...-0d2f101 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenForClientMessages

func ListenForClientMessages(pClient *client.Client, processMessage clientMessageForwarder)

ListenForClientMessages receives messages that were sent to the client and write it to the websocket

func ProcessMessage

func ProcessMessage(msg RequestMsg, pClient *client.Client) error

ProcessMessage process received messages and send them to pitaya

Types

type RequestMsg

type RequestMsg struct {
	Route     string
	Payload   []byte
	IsRequest bool
}

RequestMsg struct represents the message that the server will receive

Jump to

Keyboard shortcuts

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