jormungandr-bite/packages/iceshrimp-js/markdown/iceshrimp-js.stream._constructor_.md
2024-06-17 10:15:54 -06:00

655 B

Home > iceshrimp-js > Stream > (constructor)

Stream.(constructor)

Constructs a new instance of the Stream class

Signature:

constructor(
		origin: string,
		user: {
			token: string;
		} | null,
		options?: {
			WebSocket?: any;
		},
	);

Parameters

Parameter Type Description
origin string
user { token: string; } | null
options { WebSocket?: any; } (Optional)