TcpContext

  
class TcpContext extends BaseRpcContext {
  constructor(args: TcpContextArgs)
  getSocketRef()
  getPattern()

  // inherited from nest/packages/microservices/BaseRpcContext
  constructor(args: T)
  protected args: T
  getArgs(): T
  getArgByIndex(index: number)
}

Constructor


constructor(args: TcpContextArgs)

Parameters

Option Type Description
args TcpContextArgs

Methods

getSocketRef()

Returns the underlying JSON socket.


getSocketRef()

Parameters

There are no parameters.

getPattern()

Returns the name of the pattern.


getPattern()

Parameters

There are no parameters.