Skip to content

Commit e42e55f

Browse files
committed
remove redundant service logic from socket
1 parent 677d493 commit e42e55f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

utils/socket.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ICustomMessage } from "../context/reducers/messagesReducer";
22
import { Socket, io } from "socket.io-client";
33
import * as types from "./emitTypes";
44
import { RoomProps } from "../context/reducers/roomsReducer";
5-
import PackageJson from "../package.json";
65

76
export type MessageInfoProps = {
87
message: ICustomMessage;
@@ -75,15 +74,10 @@ interface ConnectProps {
7574

7675
export let socket: Socket<ServerToClientEvents, ClientToServerEvents>;
7776

78-
const project = {
79-
name: "React Native SDK",
80-
version: PackageJson.version,
81-
};
82-
8377
export 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
};

0 commit comments

Comments
 (0)