Skip to content
Permalink
Browse files
Starting connection - not working (missing polyfills)
  • Loading branch information
moozzyk committed Sep 30, 2017
1 parent 7875c07 commit 3228a10
Showing 1 changed file with 8 additions and 1 deletion.
@@ -1,8 +1,15 @@
const readline = require('readline');
const signalR = require('@aspnet/signalr-client');

let rl = readline.createInterface(process.stdin, process.stdout);

rl.question('Enter your name: ', name => {
console.log(name);
rl.close();

let connection = new signalR.HubConnection('http://localhost:5000/chat');
connection.start()
.catch(error => {
console.error(error);
rl.close();
});
});

0 comments on commit 3228a10

Please sign in to comment.