Giter Site home page Giter Site logo

golang-websocket-hub's Introduction

Websocket hub for golang

GoDoc

What? - ready to use websocket server with user subscription for private or broadcast messages. It is based on gorilla websockets package.

Why? - I find it a common use case for needing such behavior in day to day applications. Decided to opensource, maybe someone will find it useful.

See the example application built with angular to show realtime behavior.

cd example && make

Visit localhost:8000 to see it in action. Open a few tabs and try to send some messages.

golang-websocket-hub's People

Contributors

l3pp4rd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

golang-websocket-hub's Issues

Message endpoint

Hi, thanks for making the package! I'm curious, why do you use the /message endpoint to send messages instead of message on the client-side using the connected websocket? Wouldn't we want to move away from REST? Or is the idea to give more control for auth?

I find it useful.

I find it useful.
could you please write a user's guide document.

I know a little english and a little coding .

but I know IP network and voip.

I am learning golang now .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.