Skip to content

Commit 18851ec

Browse files
committed
changed method argument of call and subscribe methods from String[] to Object[] to allow sending json-type arguments
1 parent 8a7359d commit 18851ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/me/kutrumbos/DdpClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void connect() {
143143
* @param method - name of corresponding Meteor method
144144
* @param args - arguments to be passed to the Meteor method
145145
*/
146-
public void call(String method, String[] params){
146+
public void call(String method, Object[] params){
147147
Map<DdpMessageField,Object> callMsg = new HashMap<DdpMessageField,Object>();
148148
callMsg.put(DdpMessageField.MSG, "method");
149149
callMsg.put(DdpMessageField.METHOD, method);
@@ -161,7 +161,7 @@ public void call(String method, String[] params){
161161
* @param name - name of the corresponding Meteor subscription
162162
* @param params - arguments corresponding to the Meteor subscription
163163
*/
164-
public void subscribe(String name, String[] params) {
164+
public void subscribe(String name, Object[] params) {
165165
Map<DdpMessageField,Object> subMsg = new HashMap<DdpMessageField,Object>();
166166
subMsg.put(DdpMessageField.MSG, "sub");
167167
subMsg.put(DdpMessageField.NAME, name);

0 commit comments

Comments
 (0)