UNPKG

242 BJavaScriptView Raw
1import model from '@startupjs/model'
2
3export default function connectModel () {
4 // Try to establish connection
5 try {
6 model.createConnection()
7 } catch (err) {
8 console.error('Error establishing connection with server', err)
9 }
10}