UNPKG

@logux/server

Version:

Build own Logux server or make proxy between WebSocket and HTTP backend on any language

10 lines (8 loc) 224 B
import { ALLOWED_META } from '../allowed-meta/index.js' export function filterMeta(meta) { let result = {} for (let i of ALLOWED_META) { if (typeof meta[i] !== 'undefined') result[i] = meta[i] } return result }