An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.1% on proxy.golang.org
Top 0.9% dependent packages on proxy.golang.org
Top 1.0% dependent repos on proxy.golang.org
Top 8.4% forks on proxy.golang.org

proxy.golang.org : github.com/clevergo/websocket

Package websocket implements the WebSocket protocol defined in RFC 6455. The Conn type represents a WebSocket connection. A server application uses the Upgrade function from an Upgrader object with a HTTP request handler to get a pointer to a Conn: Call the connection's WriteMessage and ReadMessage methods to send and receive messages as a slice of bytes. This snippet of code shows how to echo messages using these methods: In above snippet of code, p is a []byte and messageType is an int with value websocket.BinaryMessage or websocket.TextMessage. An application can also send and receive messages using the io.WriteCloser and io.Reader interfaces. To send a message, call the connection NextWriter method to get an io.WriteCloser, write the message to the writer and close the writer when done. To receive a message, call the connection NextReader method to get an io.Reader and read until io.EOF is returned. This snippet shows how to echo messages using the NextWriter and NextReader methods: The WebSocket protocol distinguishes between text and binary data messages. Text messages are interpreted as UTF-8 encoded text. The interpretation of binary messages is left to the application. This package uses the TextMessage and BinaryMessage integer constants to identify the two data message types. The ReadMessage and NextReader methods return the type of the received message. The messageType argument to the WriteMessage and NextWriter methods specifies the type of a sent message. It is the application's responsibility to ensure that text messages are valid UTF-8 encoded text. The WebSocket protocol defines three types of control messages: close, ping and pong. Call the connection WriteControl, WriteMessage or NextWriter methods to send a control message to the peer. Connections handle received close messages by sending a close message to the peer and returning a *CloseError from the the NextReader, ReadMessage or the message Read method. Connections handle received ping and pong messages by invoking callback functions set with SetPingHandler and SetPongHandler methods. The callback functions are called from the NextReader, ReadMessage and the message Read methods. The default ping handler sends a pong to the peer. The application's reading goroutine can block for a short time while the handler writes the pong data to the connection. The application must read the connection to process ping, pong and close messages sent from the peer. If the application is not otherwise interested in messages from the peer, then the application should start a goroutine to read and discard messages from the peer. A simple example is: Connections support one concurrent reader and one concurrent writer. Applications are responsible for ensuring that no more than one goroutine calls the write methods (NextWriter, SetWriteDeadline, WriteMessage, WriteJSON) concurrently and that no more than one goroutine calls the read methods (NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler, SetPingHandler) concurrently. The Close and WriteControl methods can be called concurrently with all other methods. Web browsers allow Javascript applications to open a WebSocket connection to any host. It's up to the server to enforce an origin policy using the Origin request header sent by the browser. The Upgrader calls the function specified in the CheckOrigin field to check the origin. If the CheckOrigin function returns false, then the Upgrade method fails the WebSocket handshake with HTTP status 403. If the CheckOrigin field is nil, then the Upgrader uses a safe default: fail the handshake if the Origin request header is present and not equal to the Host request header. An application can allow connections from any origin by specifying a function that always returns true: The deprecated Upgrade function does not enforce an origin policy. It's the application's responsibility to check the Origin header before calling Upgrade.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/clevergo/websocket
License: BSD-2-Clause
Latest release: about 9 years ago
First release: about 9 years ago
Namespace: github.com/clevergo
Dependent packages: 36
Dependent repositories: 32
Stars: 10 on GitHub
Forks: 5 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 10 days ago

Top 9.2% on proxy.golang.org
github.imxd.top/klaytn/klaytn v1.12.1
Package klaytn defines interfaces for interacting with Klaytn.
114 versions - Latest release: over 1 year ago
Top 9.2% on proxy.golang.org
github.hscsec.cn/klaytn/klaytn v1.12.1
Package klaytn defines interfaces for interacting with Klaytn.
114 versions - Latest release: over 1 year ago
Top 8.2% on proxy.golang.org
github.com/Klaytn/klaytn v1.12.1
Package klaytn defines interfaces for interacting with Klaytn.
114 versions - Latest release: over 1 year ago - 376 stars on GitHub
github.com/monarth-s/klaytn v1.11.1
Package klaytn defines interfaces for interacting with Klaytn.
106 versions - Latest release: about 2 years ago - 0 stars on GitHub
github.com/Monarth-s/klaytn v1.11.1
Package klaytn defines interfaces for interacting with Klaytn.
106 versions - Latest release: about 2 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/klayoracle/klayoracle-monorepo/node v0.0.0-20230901101610-698e449696dc
All core packages that make up the KlayOracle protocol.
3 versions - Latest release: about 2 years ago - 4 stars on GitHub
github.com/klayoracle/klayoracle-monorepo/data-provider v0.0.0-20230901101610-698e449696dc
All core packages that make up the DigiOracle protocol.
1 version - Latest release: about 2 years ago - 6 stars on GitHub
github.com/everstake-s/klaytn v1.10.2
Package klaytn defines interfaces for interacting with Klaytn.
99 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/elemberg/klaytn v1.10.2
Package klaytn defines interfaces for interacting with Klaytn.
99 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/Elemberg/klaytn v1.10.2
Package klaytn defines interfaces for interacting with Klaytn.
99 versions - Latest release: over 2 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/alofeoluwafemi/klay-oracle v0.0.0-20230114192938-7aff09cdc865
Securely integrate off-chain data with Klaytn smart contracts
2 versions - Latest release: almost 3 years ago - 5 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/minseokoh/klaytn v1.10.1
Fork Go implementation of the Klaytn protocol
3 versions - Latest release: almost 3 years ago - 1 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/MinseokOh/klaytn v1.10.1
Fork Go implementation of the Klaytn protocol
3 versions - Latest release: almost 3 years ago - 1 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/JayChoi1736/klaytn v1.10.1
Package klaytn defines interfaces for interacting with Klaytn.
94 versions - Latest release: almost 3 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/jaychoi1736/klaytn v1.10.1
Package klaytn defines interfaces for interacting with Klaytn.
94 versions - Latest release: almost 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/borre-haechi/klaytn v1.9.1-borre
Official Go implementation of the Klaytn protocol
1 version - Latest release: almost 3 years ago - 0 stars on GitHub
Top 8.3% on proxy.golang.org
github.com/klaytn/servicechain-contracts v0.0.0-20221115073719-466ccd68e4a6
Solidity contracts for bridge and tokens(KLAY, ERC20 / ERC721, KIPs) of service chain. Generate g...
4 versions - Latest release: almost 3 years ago - 1 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/winnie-byun/solidity-stringarray v0.0.0-20221018112926-83a769c4c60e
1 version - Latest release: about 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/orignellc/klaytnwallet v0.0.1
1 version - Latest release: about 3 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/orignellc/klaytnWallet v0.0.1
1 version - Latest release: about 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/aidan-kwon/klaytn v1.9.0
Package klaytn defines interfaces for interacting with Klaytn.
83 versions - Latest release: about 3 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/henry-will/servicechain-bridge-contracts v0.9.8
8 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/snp-labs/zklaytn-dev v1.8.4
Package klaytn defines interfaces for interacting with Klaytn.
81 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/sotatek-thinhphung/custom-klaytn v1.8.3
Package klaytn defines interfaces for interacting with Klaytn.
72 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/dfwallet/klaytn v1.8.0
Package klaytn defines interfaces for interacting with Klaytn.
59 versions - Latest release: almost 4 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/DFWallet/klaytn v1.8.0
Package klaytn defines interfaces for interacting with Klaytn.
59 versions - Latest release: almost 4 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/winnie-byun/klaytn v1.7.3
Package klaytn defines interfaces for interacting with Klaytn.
9 versions - Latest release: almost 4 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/twiny/klaytn v1.7.3
Package klaytn defines interfaces for interacting with Klaytn.
21 versions - Latest release: almost 4 years ago
Top 8.2% on proxy.golang.org
github.com/protofire/klaytn v1.7.1
Package klaytn defines interfaces for interacting with Klaytn.
53 versions - Latest release: almost 4 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/aidan-kwon/toy-klaytn v0.0.0-20211111041021-7bf504f4d62a
For education purpose
1 version - Latest release: almost 4 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/yoomee1313/klaytn v1.5.1
Package klaytn defines interfaces for interacting with Klaytn.
22 versions - Latest release: about 5 years ago - 0 stars on GitHub
Top 7.0% on proxy.golang.org
github.com/kompose-app/klayfee-go v1.1.1
3 versions - Latest release: almost 6 years ago - 1 dependent package
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.