mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-05 13:25:48 +00:00
17 lines
351 B
JavaScript
17 lines
351 B
JavaScript
'use strict';
|
|
|
|
const createHTTPServer = require('../dist/npm/http').createHTTPServer;
|
|
const port = 5990;
|
|
const serverUrl = 'wss://s1.ripple.com';
|
|
|
|
|
|
function main() {
|
|
const server = createHTTPServer({server: serverUrl}, port);
|
|
server.start().then(() => {
|
|
console.log('Server started on port ' + String(port));
|
|
});
|
|
}
|
|
|
|
|
|
main();
|