Socket ingest
socketIngress.create returns a single-use WebSocket URL, valid for about 90 seconds, for streaming raw media or data frames into a room. Connect to it and stream frames in. To tear down, close the socket.
- Node.js
- Go
const socket = await client.socketIngress.create(roomId, { participantId: "telephony-leg" });
socket.wsUrl;
socket.expiresIn;
socket, err := client.SocketIngress.Create(ctx, roomID, videosdk.CreateSocketIngressParams{ParticipantID: "telephony-leg"})
fmt.Println(socket.WSURL, socket.ExpiresIn)
Options: participantId, name, metadata, agent, region.
Got a Question? Ask us on discord