0.9.0 • Published 1 year ago
@logux/core v0.9.0
Logux Core 
Logux is a new way to connect client and server. Instead of sending HTTP requests (e.g., AJAX and GraphQL) it synchronizes log of operations between client, server, and other clients.
- Guide, recipes, and API
- Issues and roadmap
- Projects inside Logux ecosystem
This repository contains Logux core components for JavaScript:
Logto store node’s actions.MemoryStoreto store log in the memory.BaseNode,ClientNode, andServerNodeto synchronize actions from Log with other node.isFirstOlderto compare creation time of different actions.WsConnection,Reconnect, andServerConnectionto connect nodes via WebSocket.TestLog,TestPair,TestTime, andeachStoreCheckto test Logux application.
Install
npm install @logux/coreUsage
See documentation for Logux API.
import { ClientNode, TestTime, TestLog, TestPair } from '@logux/core'
let time = new TestTime()
let pair = new TestPair()
let node = new ClientNode('client:test', time.nextLog(), pair.left)import { isFirstOlder } from '@logux/core'
let lastRename
log.type('RENAME', (action, meta) => {
if (isFirstOlder(lastRename, meta)) {
changeName(action.name)
lastRename = meta
}
})0.9.0
1 year ago
0.8.5
2 years ago
0.8.4
2 years ago
0.8.3
2 years ago
0.8.2
2 years ago
0.8.1
3 years ago
0.8.0
3 years ago
0.7.3
4 years ago
0.7.2
4 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.6.2
5 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.3
6 years ago
0.5.0
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
7 years ago