Skip to content
Basic WebSocket server written in TypeScript and running on Node.js.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

WebSocker server in TypeScript for Node.js

This repository contain simple example showing how to create WebSocket server for Node.js in TypeScript. Included is also WebSocket client to show how to connect to server.

Please treat this code as example, not production application starter.


Clone this repository to your local development environment:

git clone

Install all dependencias using NPM:

cd node-ts-ws-server && npm install

Run development server:

npm run start:dev

Built With

  • Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine
  • TypeScript - Typed superset of JavaScipt that compiles to plain JavaScript
  • WebSocket-Node - WebSocket Client & Server Implementation for Node.js
  • nodemon - Monitor for any changes in Node.js application and automatically restart the server


This project is licensed under the MIT License - see the LICENSE file for details.

You can’t perform that action at this time.