bom dia, eu sou um sítio na web.
- Modify app.js to use the address of your websocket server instead of
- Run the websocket server:
- Run an HTTP static file server of your choice:
python3 -m http.server 8080
- Visit index.html or your HTTP static file server root. Do this on 2 different computers or 2 tabs on the same computer.
other. Do the same on the other computer/tab (but inverting the values this time). Then call
connect. After the connection is established you'll be able to call
channel.send('message')and see the event logs at the other computer/tab.
|# POST https://api.pushbullet.com/v2/pushes|
|# requires 'Access-Token' header|
|device_iden: "<pushbullet device id>",|
|title: "\(.Message | fromjson | .NewStateValue): \(.Message | fromjson | .AlarmName)",|
|body: "\(.Message | fromjson | .AlarmDescription) -- \(.Message | fromjson | .NewStateReason) -- \(.Message | fromjson | .StateChangeTime)"|
Problem: Advertising is hard, reaching the correct people with advertising is hard -- probably easier with Adwords than in the real world, but still hard --, and is getting harder as more money is spent on internet advertising. At the same time, ad blockers are quickly spreading and maybe will soon kill all the sources of advertising, bad for personal websites, bad for small companies using Adwords.
Solution: Think affiliate marketing. Now think manual advertising contracts (when a blogger or a podcaster explicitly recommends some website or local business in his writing/talking). This tool would combine these two to get some level of automation in the process. It would beat ad blockers, give a personal touch to the advertising and release companies and bloggers from the pain of manually contracting.
How would it work?
(Let's imagine this service is hosted at natural.com, which is obviously not true). Let's see an example. A blogger writes about the topic of fishing for beginner fishers. He has a lot of fi