Skip to content

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

@oneleo

Description

@oneleo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions