Commit 7ea05ef6 authored by Matthias Möller's avatar Matthias Möller

test

parent 0690dbda
export function initialize(/* appInstance */) {
// appInstance.inject('route', 'foo', 'service:foo');
export function initialize(applicationInstance) {
applicationInstance.lookup("service:emotiv-websocket");
}
export default {
name: 'explorviz-plugin-bci',
name: 'explorviz-plugin-bci',
initialize
};
......@@ -2,7 +2,7 @@ import Ember from 'ember';
export default Ember.Service.extend({
websockets : Ember.inject.services("websockets"),
websockets : Ember.inject.service("websockets"),
init: function(){
this._super();
......@@ -13,7 +13,7 @@ export default Ember.Service.extend({
let sockets = websockets.socketFor("ws://localhost:1313/");
sockets.on("open", openMessageHandler, this);
sockets.on("message", this.myMessageHandler, this);
}
},
openMessageHandler: function(event){
console.log("Verbindung aktiv: ", event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment