提交 05b5bead 编写于 作者: 梦境迷离's avatar 梦境迷离

fix websocket bug

上级 9192624f
......@@ -45,7 +45,7 @@
### 部署
预览 http://scala.chat
预览 http://im.dreamylost.cn
邮箱:13706055022@googlemail.com
密码:123456
......
......@@ -10,7 +10,7 @@ mybatis.configuration.default-fetch-size=100
mybatis.configuration.default-statement-timeout=30
# Datasource
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://localhost:3306/websocket?useUnicode=true&characterEncoding=utf-8
spring.datasource.url=jdbc:mysql://localhost:3306/websocket?useUnicode=true&useSSL=false&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=Rootand123456789.
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
......
......@@ -58,7 +58,7 @@ class WebSocketProvider @Autowired() (redisService: RedisService) {
*/
def openConnection(uId: Integer): Flow[Message, Message, NotUsed] = {
//刷新重连
closeConnection(uId)
//closeConnection(uId)
val (actorRef: ActorRef, publisher: Publisher[TextMessage.Strict]) = {
Source
.actorRef[String](16, OverflowStrategy.fail)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册