0.9.0 • Published 10 months 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:
Log
to store node’s actions.MemoryStore
to store log in the memory.BaseNode
,ClientNode
, andServerNode
to synchronize actions from Log with other node.isFirstOlder
to compare creation time of different actions.WsConnection
,Reconnect
, andServerConnection
to connect nodes via WebSocket.TestLog
,TestPair
,TestTime
, andeachStoreCheck
to test Logux application.
Install
npm install @logux/core
Usage
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
10 months 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
2 years ago
0.8.0
3 years ago
0.7.3
3 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
5 years ago
0.5.0
5 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.4.2
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.5
5 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
6 years ago