stmp-go

module
v0.0.0-...-7f180d0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT

README

stmp-go

A lightweight real-time bidirectional framework for Golang.

Features

  • Fast
    • Supports Protocol Buffers, MsgPack
    • Extremely tidy packet format, only 1 byte header
    • Supports KCP
    • Supports connection level gzip compression
  • Easy to use
    • Supports WebSockets and highly optimized for it
    • Supports text format packet for WebSockets
    • Supports JSON
    • Supports compose different listeners in one server
    • Most concepts are the same as gRPC
    • .proto based service definition
  • Secure
    • Supports TLS

Supported transport layer protocols

  • KCP
  • TCP
  • WebSockets

Install

go get -u github.com/acrazing/stmp-go

Examples

You can get full examples at examples directory, you can run the examples with source code in root directory, the examples list:

  • quick start: The quick start example

    # run server
    make run-quick-start-server
    
    # run client
    make run-quick-start-client
    
  • room: A complex chat room service, include golang server, golang terminal client, and typescript browser client.

    # run server
    make run-room-server
    
    # run client
    make run-room-client
    

Documentation

LICENSE

The MIT License (MIT)

Copyright (c) 2019-2020 acrazing

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Directories

Path Synopsis
examples
gomoku/gomoku/num
base 64 number format
base 64 number format
gomoku/gomoku_pb
Code generated by protoc-gen-stmp.
Code generated by protoc-gen-stmp.
quick_start/quick_start_pb
Code generated by protoc-gen-stmp.
Code generated by protoc-gen-stmp.
protoc-gen-stmp is a plugin for the Google protocol buffer compiler to generate stmp relative code, supported languages: golang and javascript.
protoc-gen-stmp is a plugin for the Google protocol buffer compiler to generate stmp relative code, supported languages: golang and javascript.
The golang implementation for STMP framework STMP is a lightweight real-time bidirectional framework with many highlights.
The golang implementation for STMP framework STMP is a lightweight real-time bidirectional framework with many highlights.

Jump to

Keyboard shortcuts

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