Giter Site home page Giter Site logo

evgeneoskin / crossbar-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crossbario/crossbar-examples

0.0 3.0 0.0 32.57 MB

Crossbar.io Examples

License: Apache License 2.0

Makefile 0.45% JavaScript 18.03% Python 7.40% HTML 59.05% Shell 0.17% PHP 0.63% SQLPL 0.05% PLSQL 4.65% PLpgSQL 0.06% CSS 3.43% C++ 0.54% C# 0.29% Erlang 0.21% Java 0.26% Arduino 0.44% Jupyter Notebook 4.25% Lua 0.02% Batchfile 0.07%

crossbar-examples's Introduction

Crossbar.io Examples

This repository contains example code and applications for Crossbar.io.

Using the examples

The examples are self-contained and ready to run. Each of the example directories contains an Crossbar.io configuration. In order to run the example, just got to its directory and do crossbar start.

Overview of Examples

This overview may not be complete - so check the repository listing if you're looking for something not listed here.

To give you a better idea of a small working WAMP application there is

For a slightly more complex (and realistic) application:

The following examples cover specific features of WAMP/Crossbar.io

  • Authentication
  • Flash Fallback - How to use Flash fallback for older browsers without WebSocket support (mainly there for IE<10)
  • Longpoll - How to use the Longpoll fallback for older browsers without WebSocket support
  • Metaapi - How to subscribe to meta-events and use meta-procedures (get information about sessions, subscriptions and registrations)
  • HTTP Push Service: How to create WAMP publishes via a HTTP/POST
  • Secure WebSockets (WSS)

And finally, there are examples using specific devices or technologies:

Adapting for other languages

Most of the examples are for Python and JavaScript, even though often what is shown would work with other languages and WAMP client libraries. This is purely due to lack of resources. We want you to use Crossbar.io with whatever language or languages you want.

Anybody is very welcome to adapt example code for other languages.

Similarly, you're welcome to add examples that you think provide value to other users.

To do either, just send us a pull request.

Keeping things up to date

As you'll probably notice sooner or later, Crossbar.io is a work in progress. Core functionality is stable, but there is a lot of development going on around it. We try to keep these examples working. If you find that something is broken, then please file an issue (or fix it and send us a pull request).

Additional Examples

For historic reasons, the Autobahn|Python repository also contains some examples for using WAMP. The most relevant to the general Crossbar.io user can be found in this directory. These are almost always for both Python and JavaScript (using Autobahn|JS).

Some of the instructions here still assume a basic router in Autobahn|Python which has since been removed, but in principle they should run with Crossbar.io. The chance of running across an outdated example here are higher, however. Should you find such an example, please file an issue (or fix it and send us a pull request).

crossbar-examples's People

Contributors

agronholm avatar appleboy avatar darkl avatar estan avatar goeddea avatar hawkowl avatar kneufeld avatar markope avatar meejah avatar oberstet avatar paranic avatar robnagler avatar rogererens avatar seno-ark avatar taion avatar terrycojones avatar

Watchers

 avatar  avatar  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.