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:
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
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
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)----------
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:
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)----------