A realtime web application framework
Pull request Compare This branch is 79 commits behind flowersinthesand:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
documentation
test
.gitignore
README.md
portal.js
portal.min.js

README.md

Portal

The Portal is a server agnostic JavaScript library that not just provides a socket for browser-based applications that need two-way communication with servers, but also aims to utilize a full duplex connection for modern web application development.

The Portal project is licensed under the Apache License 2.0 and developed and maintained by Donghwan Kim. If you are interested, please follow @flowersits and subscribe to the discussion group.

How to use

Load portal.js to your application:

<script src="/portal/portal.js"></script>

Then, open a connection to the portal server.

<script>
portal.open("/portal").on({
    // Pseudo event
    connecting: function() {},
    waiting: function(delay, attempts) {},
    // Network event
    open: function() {},
    close: function(reason) {},
    // Message event
    message: function(data) {},
    eventname: function(eventdata) {}
});
</script>