Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

[Feature request]: Use a signalr client? #1

Closed
bjsmiley opened this issue Feb 9, 2023 · 6 comments
Closed

[Feature request]: Use a signalr client? #1

bjsmiley opened this issue Feb 9, 2023 · 6 comments

Comments

@bjsmiley
Copy link

bjsmiley commented Feb 9, 2023

Just passing by, scrolling through the code. And recognized the signalr protocol

EdgeGPT/src/EdgeGPT.py

Lines 176 to 178 in f17417b

async def __initial_handshake(self):
await self.wss.send(append_identifier({"protocol": "json", "version": 1}))
await self.wss.send(append_identifier({"type": 6}))

Was just curious if you thought of using a preexisting signalr client instead of implementing the protocol.

@acheong08
Copy link
Owner

acheong08 commented Feb 9, 2023

Planning on migrating to https://github.com/mandrewcito/signalrcore later. Websockets is easier to implement for now as a POC.

@acheong08 acheong08 changed the title Use a signalr client? [Feature request]: Use a signalr client? Feb 10, 2023
@acheong08
Copy link
Owner

After implementing the same thing in 2 different SignalR libraries, I have decided to stick with websockets. The level of abstraction is too high and is difficult to use for reverse engineering.

@24rr
Copy link

24rr commented Feb 14, 2023

After implementing the same thing in 2 different SignalR libraries, I have decided to stick with websockets. The level of abstraction is too high and is difficult to use for reverse engineering.

Hey. You can alternatively use mitmproxy or Charles Proxy to inspect and modify the network traffic instead of using the websockets library in Python. These tools will allow you to analyze the WebSocket communication in a more detailed manner and can be useful for reverse engineering the Bing API.

@acheong08
Copy link
Owner

I already reverse engineered it. It hasn't changed.

@acheong08
Copy link
Owner

I used Insomnia to reverse it

@24rr
Copy link

24rr commented Feb 14, 2023

I used Insomnia to reverse it

Oh, cool then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants