Options for creating a service.

Properties

cogSettings

cogSettings: CogSettings

CogSettings file generated by cogment generate.

example

import CogSettings from './CogSettings';

Defined in: cogment/Cogment.ts:124


grpcURL

Optional grpcURL: string

URL of the Cogment gRPC backend.

defaultvalue //${window.location.hostname}:8080

Defined in: cogment/Cogment.ts:130


streamingTransportFactory

Optional streamingTransportFactory: TransportFactory

gRPC transport for streaming calls.

defaultvalue

grpc.WebsocketTransport()

Defined in: cogment/Cogment.ts:138


unaryTransportFactory

Optional unaryTransportFactory: TransportFactory

gRPC transport for unary calls.

defaultvalue

grpc.CrossBrowserHttpTransport({
  withCredentials: false,
})

Defined in: cogment/Cogment.ts:148