File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { ICustomMessage } from "../context/reducers/messagesReducer";
22import { Socket , io } from "socket.io-client" ;
33import * as types from "./emitTypes" ;
44import { RoomProps } from "../context/reducers/roomsReducer" ;
5- import PackageJson from "../package.json" ;
65
76export type MessageInfoProps = {
87 message : ICustomMessage ;
@@ -75,15 +74,10 @@ interface ConnectProps {
7574
7675export let socket : Socket < ServerToClientEvents , ClientToServerEvents > ;
7776
78- const project = {
79- name : "React Native SDK" ,
80- version : PackageJson . version ,
81- } ;
82-
8377export const connect = ( props : ConnectProps ) => {
8478 const { chatAuthId, tenantId, auth } = props ;
8579 socket = io ( "https://service.commt.co" , {
86- query : { chatAuthId, tenantId, project } ,
80+ query : { chatAuthId, tenantId } ,
8781 auth,
8882 } ) ;
8983} ;
You can’t perform that action at this time.
0 commit comments