Browse Source

Add socket

main
Haris Razis 4 years ago
parent
commit
232b6e304d
No known key found for this signature in database GPG Key ID: 86A4D290ED03FAB4
  1. 3
      client/index.js
  2. 4
      client/services/socket.js

3
client/index.js

@ -1 +1,4 @@
require('./services/socket')
console.log('hello world')

4
client/services/socket.js

@ -0,0 +1,4 @@
const io = require('socket.io-client');
const socket = io('http://localhost:3000');
Loading…
Cancel
Save