Comments (2)
感谢反馈。
首先把Turms服务端换成20号22号发布的(就改了一个turms的jar包),因为这个版本会自动在启动时mock测试数据(但注意要将application.properties下的数据库名由turms改为turms-dev)。 https://github.com/turms-im/turms/releases/download/v0.8.0-dev-beta.20191022/v0.8.0-dev-beta.20191022.zip
然后可以去到 https://github.com/turms-im/turms-client-js 项目,并clone这个项目。下载完后,运行demo文件夹下的demo.html(保证它运行在web环境。以http(s)协议开头,而不是file协议。用intellij idea直接打开这demo.html的话,它默认就会运行在web环境),它就能自动登陆到Turms服务端,并执行创建新Group和拉取离线消息的操作。
这部分你可以通过F12,打开浏览器console来看。
在实际项目开发中,可以引入
https://github.com/turms-im/turms-client-js/blob/develop/dist/turms-client-min.js 来调用所有的TurmsClient类下面的对象与方法(用法可以参考demo,使用起来真的很简单。而且turms-client-js.d.ts会给IDE代码提示)
当然,现在前端工程化,很少直接用<script></script>引用js,所以turms-client-js之后会作为前端的dependency发布到公共仓库,方便开发者调用。
P.S. 这个周日(27号)会给出turms-client-js的使用文档,感谢关注。
from turms.
谢谢 我去研究下
from turms.
Related Issues (20)
- Dump threads in JSON (follow the JSON format defined in Java 21) instead plain text
- 可以更新到最新的代码吗 HOT 1
- how to start minio with quickstart docker command HOT 6
- can u reconsider building a WeChat group again? HOT 1
- remote debug HOT 4
- Support topics extraction and emotion analysis of conversations
- Support recalling sent messages after detecting they are spam
- createGroup return Unhandled Exception: 1685915268:3100:The requester is only allowed to create groups with the types: [0]:null:null HOT 1
- Edit default group type config, save change ,show error failed to fetch:(500,1200) value HOT 1
- Problem with users getting empty userSession when disconnecting websocket connection HOT 2
- MapCodecV2 cannot be cast to class HOT 2
- Add prompts for inputs in Create/Update records modals for better UX
- RpcException: 2:1201 HOT 4
- Can not login with multi-device HOT 1
- Set up a chatbot for Turms so that users can ask it to learn
- group profile picture issue HOT 2
- Log Chinese display garbled code HOT 2
- Support OCR for image storage plugins
- Allow users to report spam messages for collecting spams and training spam filtering models for better performance
- Allow users to report illegal images for collecting them and training image moderation models for better performance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turms.