@melony/react 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,10 +12,12 @@ npm install @melony/react melony react
12
12
 
13
13
  ```tsx
14
14
  import React from "react";
15
- import { MelonyClient, createHttpTransport } from "melony/client";
15
+ import { MelonyClient } from "melony/client";
16
16
  import { MelonyClientProvider, Thread } from "@melony/react";
17
17
 
18
- const client = new MelonyClient(createHttpTransport("/api/chat"));
18
+ const client = new MelonyClient({
19
+ url: "/api/chat"
20
+ });
19
21
 
20
22
  export default function App() {
21
23
  return (