mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-10 15:55:50 +00:00
17 lines
345 B
JavaScript
17 lines
345 B
JavaScript
'use strict';
|
|
|
|
const createHTTPServer = require('../src/index').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();
|