Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
/ pony-gun Public archive

Native Pony-lang Gun.js Server Implementation

License

Notifications You must be signed in to change notification settings

erhlee-bird/pony-gun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pony-gun

Implementation of a gun.js server in Pony-lang.

Getting Started

ponyc stable fetch
make

Testing

Open up a new browser and run the following in the console.

var ws = new WebSocket('ws://localhost:10000');
ws.onopen = function(o) { console.log('open', o) };
ws.onclose = function(c) { console.log('close', c) };
ws.onmessage = function(m) { console.log('message', m) };
ws.onerror = function(e) { console.log('error', e) };

ws.send(JSON.stringify({put: {test: "whoo!"}}))

About

Native Pony-lang Gun.js Server Implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published