Options
All
  • Public
  • Public/Protected
  • All
Menu

@obsidize/rx-socket

Index

Type aliases

BufferUntilPredicate

BufferUntilPredicate<T>: (value: T, state: BufferUntilState<T>) => boolean

Type parameters

  • T

Type declaration

SendAction

SendAction<T>: (value: T) => Observable<any>

Type parameters

  • T

Type declaration

    • (value: T): Observable<any>
    • Parameters

      • value: T

      Returns Observable<any>

Functions

allSubjectsDestroyed

  • allSubjectsDestroyed(subjects: Subject<any>[]): boolean

Const bufferUntil

  • bufferUntil<T>(predicate: BufferUntilPredicate<T>, flushOnComplete?: boolean): OperatorFunction<T, T[]>
  • Buffers input until the given predicate returns true for a given buffer state and value. Emits all buffered values up until (and including) the value for which the predicate returns a truthy value.

    Type parameters

    • T

    Parameters

    Returns OperatorFunction<T, T[]>

Const bufferUntilTerminator

Const bufferUntilTerminatorExclusive

  • bufferUntilTerminatorExclusive(options?: JsonBufferMapOptions): OperatorFunction<string, string[]>

destroyAllSubjects

  • destroyAllSubjects(subjects: Subject<any>[], errorMessage?: string): void
  • Parameters

    • subjects: Subject<any>[]
    • Optional errorMessage: string

    Returns void

destroySubject

  • destroySubject(subject: Subject<any>, errorMessage?: string): void
  • Parameters

    • subject: Subject<any>
    • errorMessage: string = 'destroyed'

    Returns void

identity

  • identity<T>(value: T, ..._args: any[]): any
  • Type parameters

    • T

    Parameters

    • value: T
    • Rest ..._args: any[]

    Returns any

isErrorable

  • isErrorable(value: any): boolean

isFunction

  • isFunction(value: any): boolean

isPopulatedString

  • isPopulatedString(value: any): boolean

isString

  • isString(value: any): boolean

isSubjectDestroyed

  • isSubjectDestroyed(subject: Subject<any>): boolean

isSubscribable

  • isSubscribable(value: any): boolean

isUnsubscribable

  • isUnsubscribable(value: any): boolean

Const mapBufferToJson

Const mapBufferToString

Const mapJsonToBuffer

Const mapJsonToString

Const mapStringToBuffer

Const mapStringToJson

Const mapStringToTerminatedJson

Const mutateBufferUntilState

splitInclusive

  • splitInclusive(value: string, separator: string): string[]
  • Parameters

    • value: string
    • separator: string

    Returns string[]

toString

  • toString(value: any): string

Generated using TypeDoc