Change socket implementation for servers

This commit is contained in:
Dane Everitt 2018-08-18 20:13:40 -07:00
parent e0fda5865d
commit dc52e238ac
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 242 additions and 17 deletions

View file

@ -24,11 +24,12 @@
<script>
import Status from './../../../helpers/statuses';
import { Socketio } from './../../../mixins/socketio';
import { mapState } from 'vuex';
export default {
name: 'power-buttons',
mixins: [Socketio],
computed: {
...mapState('socket', ['connected', 'status']),
},
@ -41,7 +42,7 @@
methods: {
sendPowerAction: function (action) {
this.$socket.emit('set status', action)
this.$socket().instance().emit('set status', action)
},
},
};