Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button Example Web can connect to my own Spacebrew Server, but the own Spacebrew Admin Web won't show the Button Client Name #73

Open
oneleo opened this issue Sep 18, 2016 · 0 comments

Comments

@oneleo
Copy link

oneleo commented Sep 18, 2016

Hi All

I went to setup my own Spacebrew Server.
But when I connect to this Server through Button Example Web, it cannot show Button Client Name in Admin Web.

Information above:

  1. Button Example Web address
    file:///C:/Users/User/Downloads/spacebrew.js-master/spacebrew.js-master/spacebrew_button/index.html?server=192.168.23.130&port=9000&name=abc
  2. Spacebrew Server
    OS: I tried to use Ubuntu16.04 and CentOS7 but same problem
    IP: 192.168.23.130
    Node.js Version: 0.10.46
    NPM Version: 1.3.6

Thank you very much!

The detail information address with image below:
http://www.evernote.com/l/AFs1nElqEehFeJ7MxOGoS2IcEbqA9F66Xv0/


Step what I install:

$ yum list updates
$ yum update -y && yum upgrade -y

$ yum install net-tools vim epel-release git-core open-vm-tools -y
$ yum install nodejs npm -y
$ yum clean all

$ mkdir -p /opt/spacebrew/
$ git clone https://github.com/Spacebrew/spacebrew.git /opt/spacebrew/

$ cd /opt/spacebrew
$ npm install
$ node node_server_forever.js

----------Node Message(Begin)----------

[root@localhost spacebrew]# node node_server_forever.js

Running Spacebrew, start with argument '--help' to see available configuration arguments.
More info at http://www.spacebrew.cc

warn: [loadRoutes] live routes config file does not exist live_persist_config.json

----------Node Message(End)----------

When I launch the server by "$ node node_server_forever.js --log", I got this message loop!!

----------Node Message(Begin)----------
info: [pingAllClients] setting validated = false
----------Node Message(End)----------

Full message here:
----------Node Message(Begin)----------
Running Spacebrew, start with argument '--help' to see available configuration arguments.
More info at http://www.spacebrew.cc

info: [setLogLevel] log level set to info
info: [createServer] log level set to info
info: [wss.onconnection] someone connected
info: [ws.open] connected to spacebrew

warn: [loadRoutes] live routes config file does not exist live_persist_config.json
info: [wss.onmessage] new message received
info: [wss.onmessage] text message content: {"admin":[{"admin":true,"no_msgs":true}]}
info: [wss.onmessage] source: undefined
info: [receivedMessage] received new message from spacebrew server:
info: []
info: [receivedMessage] received new message from spacebrew server:
info: {"admin":[{"admin":true,"no_msgs":true}],"targetType":"admin"}
info: [wss.onconnection] someone connected
info: [wss.onmessage] new message received
info: [wss.onmessage] text message content: {"admin":[{"admin":true}]}
info: [wss.onmessage] source: undefined
info: [receivedMessage] received new message from spacebrew server:
info: {"admin":[{"admin":true}],"targetType":"admin"}
info: [wss.onconnection] someone connected
info: [wss.onmessage] new message received
info: [wss.onmessage] text message content: {"config":{"name":"button example 6759","description":"This spacebrew client sends and receives boolean messages.","publish":{"messages":[{"name":"buttonPress","type":"boolean","default":"false"}]},"subscribe":{"messages":[{"name":"toggleBackground","type":"boolean"}]},"options":{}}}
info: [wss.onmessage] source: undefined
info: [printAllTrustedClients] total number of trustedClients: 1
info: client name: button example 6759, ip address: undefined
info: [receivedMessage] received new message from spacebrew server:
info: {"config":{"name":"button example 6759","description":"This spacebrew client sends and receives boolean messages.","publish":{"messages":[{"name":"buttonPress","type":"boolean","default":"false"}]},"subscribe":{"messages":[{"name":"toggleBackground","type":"boolean"}]},"options":{}},"targetType":"admin"}
info: [handleMessage] add client request received:
info: {"config":{"name":"button example 6759","description":"This spacebrew client sends and receives boolean messages.","publish":{"messages":[{"name":"buttonPress","type":"boolean","default":"false"}]},"subscribe":{"messages":[{"name":"toggleBackground","type":"boolean"}]},"options":{}},"targetType":"admin"}
info: [handleConfigMessage] adding a new client
info: [pingAllClients] setting validated = false
info: [pingAllClients] setting validated = false
info: [pingAllClients] setting validated = false
info: [pingAllClients] setting validated = false

...
----------Node Message(Begin)----------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant