Giter Site home page Giter Site logo

noobhub's Introduction

NoobHub

OpenSource multiplayer and network messaging for CoronaSDK, Moai, Gideros & LÖVE

  • Connections are routed through socket server with minimum latency, ideal for action games.
  • Simple interface. Publish/subscribe paradigm in action.
  • Server written on blazing fast Nodejs.
  • Socket connections, works great through any NAT (local area network), messages delivery is reliable and fast.

Repo includes server code (so you can use your own server) and CoronaSDK/Moai/Gideros client. More clients to come. You can test on my server, credentials are hardcoded in demo project!

Lua code may serve as an example of how LuaSocket library works.

How to use it

START SERVER

    $ node node.js

INITIALIZE

    hub = noobhub.new({ server = "127.0.0.1"; port = 1337; }); 

SUBSCRIBE TO A CHANNEL AND RECEIVE CALLBACKS WHEN NEW JSON MESSAGES ARRIVE

    hub:subscribe({
      channel = "hello-world";	
    	callback = function(message)
    
    		if(message.action == "ping")   then 
    			print("Pong!")
    		end;
    
    	end;
    });

SAY SOMETHING TO EVERYBODY ON THE CHANNEL

    hub:publish({
        message = {
            action  =  "ping",
            timestamp = system.getTimer()
        }
    });

Authors

  • Igor Korsakov
  • Sergii Tsegelnyk

Official discussion thread

noobhub's People

Contributors

overtorment avatar dr3am3r avatar bitdeli-chef avatar zillion01 avatar dynlab-build avatar namelis avatar

Watchers

 avatar

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.