root-wyj / springboot_im Goto Github PK
View Code? Open in Web Editor NEW使用springboot + nettysocketio开发的一个简易卡牌游戏。主要想了解游戏服务端开发流程,基本逻辑等相关知识和长连接。
使用springboot + nettysocketio开发的一个简易卡牌游戏。主要想了解游戏服务端开发流程,基本逻辑等相关知识和长连接。
1、能否添加必要的注释?
2、netty-socketio与springboot集成后,加载启动顺序怎样的,能简单描述下吗?
3、有很多的包分类能适当整理下吗?
我启动成功了,但是连接不上,好像需要(时间戳:token)
作者没有对页面端的参数说明
博主为啥自己写以下接口
void inRoom(UserInCache user);
void outRoom(long userId);
void startGame();
void exitThisRound(long userId);
void addCost(long userId, int cost);
void openThisRound(long userId);
而不用自带的
joinRoom() 加入到指定房间。
leaveRoom() 从指定房间离开。
getSessionId()方法,返回由UUID生成的唯一标识。
getAllRooms() 返回当前客户端所在的room名称列表。
sendEvent(eventname,data) 向当前客户端发送事件。
房间数量有上限吗?房间里没有用户了房间会自动删除吗
@component
public class ImProperties {
public static String WEBSOCKET_SERVER_URL;
@PostConstruct
private void init() {
WEBSOCKET_SERVER_URL = websocketServerUrl;
}
@Value(value = "${netty.socketio.server.host}")
private String websocketServerUrl;
}
我想问下用静态方法这样写和直接用get,set这么写有什么好处?
博主,这个项目不错,其实继续优化,整理,可以形成一个不错的工程
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.