32.1.0 • Published 6 months ago

@txtextcontrol/tx-websocket-server v32.1.0

Weekly downloads
6
License
ISC
Repository
-
Last release
6 months ago

WebSocket Server for TX Text Control HTML5 Document Editor

WebSocket Server for TX Text Control HTML5 Document Editor for Angular and Node.js.

Prerequisites

The "heart" of the TX Text Control HTML5 Document Editor is the so called synchronization service that synchronizes the document in order to provide the WYSIWYG rendering. If you want to deploy an application containing the editor, you will have to host your own synchronization service and set the serviceAddress of the WebSocket server accordingly (see below). The synchronization service is part of TX Text Control .NET Server for ASP.NET.

Installation

npm install @txtextcontrol/tx-websocket-server

Usage

The following shows a minimal working example of a Node.js application which starts the TX Text Control WebSocket server on port 8080:

const { WebSocketServer } = require('@txtextcontrol/tx-websocket-server');
const express = require('express');

const app = express();
const server = app.listen(8080);

var wsServer = new WebSocketServer(server);

Configuration

The WebSocketServer object can be configured via the optional second constructor parameter. This parameter must be an object. This object can contain the following properties:

  • wsPath (string) - The WebSocket endpoint path. The default value is '/TXWebSocket'.
  • serviceAddress (string) - The synchronization service address. The default value is 'localhost'.
  • servicePort (number) - The port the synchronization service ist listening for connections on. The default value is 4281.

Environment Support

  • TX Text Control .NET Server for ASP.NET 32.0
32.0.0

8 months ago

32.1.0

6 months ago

31.0.1

1 year ago

31.0.0

2 years ago

30.0.2

2 years ago

30.0.0

2 years ago

29.0.0

3 years ago

28.0.5

4 years ago

28.0.4

4 years ago

28.0.2

4 years ago

28.0.1

4 years ago

28.0.0

4 years ago

27.1.8

4 years ago

27.1.7

4 years ago

27.1.6

5 years ago

27.1.5

5 years ago

27.1.4

5 years ago

27.1.3

5 years ago

27.1.2

5 years ago

27.1.1

5 years ago

27.1.0

5 years ago