Permalink
Browse files

Starting connection - not working (missing polyfills)

  • Loading branch information...
moozzyk committed Sep 30, 2017
1 parent 7875c07 commit 3228a10c537a41031c7f0f023acc969a9624ffb5
Showing with 8 additions and 1 deletion.
  1. +8 −1 SignalRChatNode/index.js
View
@@ -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.