Skip to content

A Java library for sending messages to the Thunderpush server.

Notifications You must be signed in to change notification settings

Sim00n/java-thunderclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation


Thunderpush client for Java

A Java library for sending messages to the Thunderpush <https://github.com/thunderpush/thunderpush>_ server.

Example

::

import java.io.IOException;

class Tester {
	
	public static void main(String[] args) throws IOException {

		String[] message = new String[2];
		message[0] = "msg=hello";
		message[1] = "name=tester";

		Thunder thunder = new Thunder("localhost", 8080, "key", "secret");		
		
		System.out.println(thunder.getUserInChannel("default-channel"));
		System.out.println(thunder.getUserCount());
		System.out.println(thunder.sendMessageToUser("test-user", message));
		System.out.println(thunder.sendMessageToChannel("test-channel", message));
		System.out.println(thunder.isUserOnline("test-user"));
		System.out.println(thunder.disconnectUser("test-user"));
	}
}

About

A Java library for sending messages to the Thunderpush server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages