- install
node.js
- download this repository.
- open Terminal and go to the directory.
- run
npm install
- run
node server.js
- on a web browser visit http://localhost:8080
- you have to run the step 1 everytime you refresh the web page.
- sending port : 3334 (LW --> App)
- types
/added/[line]/[ch]/[content]
/removed/[line]/[ch]/[content]
/mousemove/[x coodrinate]/[y coodrinate]
/moseup/[x coodrinate]/[y coodrinate]
/mosedown/[x coodrinate] [y coodrinate]
/wheel/[wheel data]
- receving port : 3333 (App --> LW)
- types
/zoomin
/zoomout
/camrotate [dx-angle] [dy-angle] [dz-angle]
/camtranslate [dx] [dy] [dz]
- reference