基於nodejs搭建Web,API服務器

Web和API是基於不一樣的插件進行搭建的,Web服務器是基於ws模塊,API服務器是基於net模塊進行搭建的。來個服務器都是基於nodejs來搭建的。 1.搭建Web服務器node const Websockt = require('ws');//第三方插件 const ws = new Websockt.server(//構建ws服務器 port: 9000, host: '1
相關文章
相關標籤/搜索