Documentation ¶
Overview ¶
Websocket is an extension package that makes the Teleport framework compatible with websocket protocol as specified in RFC 6455.
Copyright 2018 HenryLee. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func NewDialPlugin(pattern string) tp.Plugin
- func NewJsonServeHandler(peer tp.Peer, handshake func(*ws.Config, *http.Request) error) http.Handler
- func NewPbServeHandler(peer tp.Peer, handshake func(*ws.Config, *http.Request) error) http.Handler
- func NewServeHandler(peer tp.Peer, handshake func(*ws.Config, *http.Request) error, ...) http.Handler
- func NewWsProtoFunc(subProto ...tp.ProtoFunc) tp.ProtoFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDialPlugin ¶
NewDialPlugin creates a websocket plugin for client.
func NewJsonServeHandler ¶
func NewJsonServeHandler(peer tp.Peer, handshake func(*ws.Config, *http.Request) error) http.Handler
NewJsonServeHandler creates a websocket json handler.
func NewPbServeHandler ¶
NewPbServeHandler creates a websocket protobuf handler.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package jsonSubProto is implemented JSON socket communication protocol.
|
Package jsonSubProto is implemented JSON socket communication protocol. |
Package pbSubProto is implemented PROTOBUF socket communication protocol.
|
Package pbSubProto is implemented PROTOBUF socket communication protocol. |
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.
|
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455. |