raydium-io / raydium-sdk-V2

Open-source Typescript SDK for Raydium
GNU General Public License v3.0
79 stars 47 forks source link

How to close ws errror ws error: Unexpected server response: 200 #31

Closed TIANJINFENG closed 3 months ago

TIANJINFENG commented 3 months ago

Each transaction creates a ws, causing the memory usage to increase continuously

ws errror ws error: Unexpected server response: 200

cruzshia commented 3 months ago

No issues was found in sdk, maybe should check your rpc node.

cruzshia commented 3 months ago

Sdk only subscribe token account change(https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/raydium/account/account.ts#L124 ) when needs to fetch token account data, no other usage of websocket. And the error was returned by your rpc.