Skip to content

This is a typescript version of darkwire.io v2.0.0 socket.io server written in typescript

License

Notifications You must be signed in to change notification settings

pavlobu/darkwire.io-server-ts

Repository files navigation

darkwire.io-sever-ts

Description

This is a darkwire.io server translated to typescript, right now it only supports memory based store (no Redis support as in original darkwire.io !)

darkwire.io client that DOES NOT require https and using node-forge instead of window.crypto.subtle can be found here !

prerequisites:

you need to have globally installed:

  1. yarn
  2. tsc (typescript compiler)
npm install -g yarn
npm install -g tsc

then run this command to install dependencies:

yarn install

how to use

run in production

to run in production:

yarn start:prod

to kill server in production:

yarn stop:prod

then you can start your darkwire.io/client in your different terminal or serve a compiled version of client with any static file server! (apache, python, node ...)

run in development

you will need two terminals running. you will run commands that will watch changes on your .ts files and compile them automatically to .js files, then server will be restarted

in first terminal run:

yarn start # in first terminal

in second terminal run:

tsc -w # in second terminal

Copyright

Copyright (c) 2016-present darkwire.io

About

This is a typescript version of darkwire.io v2.0.0 socket.io server written in typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published