<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| // dont do this | |
| // arbitrary examples but this would be faster | |
| // just using normal nodejs promises | |
| const axios = require("axios"); | |
| const assert = require("assert"); | |
| const { | |
| Worker, | |
| MessageChannel, |
| var WebSocketServer = require('ws').Server; | |
| var wss = new WebSocketServer({port: 8080}); | |
| var jwt = require('jsonwebtoken'); | |
| /** | |
| The way I like to work with 'ws' is to convert everything to an event if possible. | |
| **/ | |
| function toEvent (message) { | |
| try { |
| List of NodeJS Projects with good structure, folder layout, etc. | |
| Habit RPG | |
| https://github.com/HabitRPG/habitrpg | |
| The New NPM Site | |
| https://github.com/npm/newww | |
| NodeBB | |
| https://github.com/NodeBB/NodeBB |
| if(window.location.hash.indexOf('thisTest') > 0 { | |
| $('#selector').trigger('click'); | |
| } |